-
Notifications
You must be signed in to change notification settings - Fork 78
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
feat: force peer resynch when VNET extended #258
Comments
This is a sensible suggestion. Leave it with us to see if we can implement. |
Voted for this, and it would be great to have this feature added. |
I had a ta-da moment today on how we can implement. Will report back! |
I have proved this works in a poc, will work on adding this to a future release |
PoC is here: https://www.youtube.com/watch?v=5_39Ed5Lx1E and here: https://github.com/matt-FFFFFF/terraform-azapi-vnet-peer-resync Will look to get this added as a feature |
Outstanding - thanks Matt -- really appreciated. We'll take a look and have a go at using this in our deployments as soon as we can! |
incredibly good work - thanks for that! |
I went for a workaround. As our landingzone deployment is made with an azure devops release pipeline I added a step which calls a webhook from an automation runbook. This runbook iterates over all peerings in the HUB and initiate a resync if not fully in sync |
Description
Is your feature request related to an issue? Feature Request
When a peered VNET is extended the peer needs to be resync'ed. The native Terraform modules force a resync when a VNET is extended. The Microsoft modules do not.
Describe the solution you'd like
The Microsoft modules should force a resync on any peered VNETS where the range is changed ( extended or reduced.)
We are looking to implement a workaround in Powershell that will get a list of all VNETS. Check to see if the PeeringSyncLevel is RemoteNotInSync and if it is pass the VNET name to Sync-AzVirtualNetworkPeering to force the peer sync.
Additional context
The text was updated successfully, but these errors were encountered: