-
Notifications
You must be signed in to change notification settings - Fork 377
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
fix: Added DependsOn to Virtual Network module to prevent Network peering to start whilst subnets are being created #3404
fix: Added DependsOn to Virtual Network module to prevent Network peering to start whilst subnets are being created #3404
Conversation
…s are created to prevent error about updating state
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.
Hey @joerygrolleman,
thanks for the contribution. 💪
I'd love to go ahead and merge it right in, but we have to do 2 things first:
- Please run the
Set-AVMModule
(ref) utility on the module so that all generated files are updated (in this case this would primarily be themain.json
file) - If possible, please add a pipeline badge of the deployment working in your fork and attach a pipeline badge to the module's description
@microsoft-github-policy-service agree |
@joerygrolleman hey, in case you have not noticed, it appears you have not disabled your workflows and recently merged a change into your main branch. Because all pipelines have a trigger on changes in main (for their corresponding paths), you have a lot of running workflows on your hand.
For more information please see this article in our contribution guide. The good news is that not all secrets seem to have been set up. So while all workflows do currently run, they won't deploy any services as they cannot log into Azure. In other words, they effectively only run the static validation after which they fail. |
Hi! Thanks for the heads-up for disabling the pipelines, that helped a lot! I ran the |
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.
Thanks for your contribution @joerygrolleman, off we go :)
Description
When creating a virtual network with subnets and network peering for the first time it causes an error, namely
Resource is in Updating state and the last operation that updated/is updating the resource is PutSubnetOperation.
. To prevent this from happening, I added adependsOn
on the peering to prevent the peering from being created before the subnets were created.This isn't the prettiest solution as subnets are not dependent on the peerings to succeed.
Fixes #3405
Pipeline Reference
Type of Change
version.json
:version.json
.version.json
.Checklist
Set-AVMModule
locally to generate the supporting module files.