Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ServiceBus Namespace VNet #1054

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

MCKLMT
Copy link
Contributor

@MCKLMT MCKLMT commented Dec 1, 2020

No description provided.

@codecov-io
Copy link

codecov-io commented Dec 1, 2020

Codecov Report

Merging #1054 (8d876f7) into main (3682e37) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1054   +/-   ##
=======================================
  Coverage   94.26%   94.26%           
=======================================
  Files         328      328           
  Lines       15811    15811           
  Branches       12       12           
=======================================
  Hits        14904    14904           
  Misses        907      907           
Flag Coverage Δ
dotnet 94.82% <ø> (ø)
typescript 25.78% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@MCKLMT
Copy link
Contributor Author

MCKLMT commented Dec 2, 2020

@alex-frankel Any idea why the build fails?

@alex-frankel
Copy link
Collaborator

nope.. @anthony-c-martin any idea what's happening? I tried re-running all the jobs yesterday

@miqm
Copy link
Collaborator

miqm commented Dec 2, 2020

@MCKLMT - aren't you missing adding the example into playground ts file?

@MCKLMT
Copy link
Contributor Author

MCKLMT commented Dec 2, 2020

What’s this playground ts file? 🤨

@miqm
Copy link
Collaborator

miqm commented Dec 2, 2020

@MCKLMT
Copy link
Contributor Author

MCKLMT commented Dec 2, 2020

I never modified the playground file for all examples I submitted recently. I will add them. I hope it will fix the build.

@miqm
Copy link
Collaborator

miqm commented Dec 2, 2020

Looking closer I don't think it's the problem for the builds failing. It seems like github actions had some internal issue and re-triggered VSIX builds and the third attempt passed, so you should be good with merging.
image

Although it would be good if we had some check to verify adding examples into playground's ts file so they are visible on the bicep demo webpage. @alex-frankel WDYT?

@alex-frankel
Copy link
Collaborator

Although it would be good if we had some check to verify adding examples into playground's ts file so they are visible on the bicep demo webpage. @alex-frankel WDYT?

This would be a good addition, but I am still seeing failed VSIX builds... It looks like there is some kind of retry, but because the earlier tests failed I am not allowed to merge automatically..

}
}

resource namespaceVirtualNetworkRule 'Microsoft.ServiceBus/namespaces/VirtualNetworkRules@2018-01-01-preview' = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be a little clearer to understand with the following:

resource namespaceVirtualNetworkRule 'Microsoft.ServiceBus/namespaces/VirtualNetworkRules@2018-01-01-preview' = {
  name: '${serviceBusNamespace.name}/${virtualNetworkName}'
  properties: {
    virtualNetworkSubnetId: '${virtualNetwork.id}/subnets/${subnetName}'
  }
}

My reasoning:

  1. It's just by convention that the name matches the virtualNetwork's name, so feels like it is more understandable to use the variable virtualNetworkname.
  2. I feel like it's a good practice to avoid using resourceId() unless absolutely necessary, just because it's easy to mess up with refactors/renames, and this way, the dependency is implicit.

Copy link
Member

@anthony-c-martin anthony-c-martin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just a minor suggestion

@anthony-c-martin anthony-c-martin merged commit 38d6704 into Azure:main Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants