-
Notifications
You must be signed in to change notification settings - Fork 759
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1054 +/- ##
=======================================
Coverage 94.26% 94.26%
=======================================
Files 328 328
Lines 15811 15811
Branches 12 12
=======================================
Hits 14904 14904
Misses 907 907
Flags with carried forward coverage won't be shown. Click here to find out more. |
@alex-frankel Any idea why the build fails? |
nope.. @anthony-c-martin any idea what's happening? I tried re-running all the jobs yesterday |
@MCKLMT - aren't you missing adding the example into playground ts file? |
What’s this playground ts file? 🤨 |
I never modified the playground file for all examples I submitted recently. I will add them. I hope it will fix the build. |
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. 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' = { |
There was a problem hiding this comment.
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:
- 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
. - 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.
There was a problem hiding this 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
No description provided.