-
Notifications
You must be signed in to change notification settings - Fork 517
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
Spoke Vnet peering with Vwan virtual hub #185
Conversation
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.
Nice work @faister.
Should this module only deploy the VWAN? Hub Virtual Network Connection (aka peering)? Rather than also deploying the spoke VNet?
As the spoke VNet module (https://github.com/Azure/ALZ-Bicep/tree/main/infra-as-code/bicep/modules/spokeNetworking) can be used to create the spoke and then we just need an equivalent for the virtualNetworkPeer
(https://github.com/Azure/ALZ-Bicep/tree/main/infra-as-code/bicep/modules/virtualNetworkPeer) module for VWAN?
@jtracey93 Thanks. I'll change this to introduce a new parameter, which is the remote spoke vnet resource id. This allows an existing vnet (from any subscription) to be peered with the vwan vhub. However if the remote spoke vnet resource id is empty, then it will create a new vnet. This makes it easier for anyone to use this module, rather than having to call another module, and it is also consistent with how vnetPeeringVwan works in the parent enterprise-scale repo. What do you think? |
… remote spoke vnet
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 @faister, looks great.
I have made a few changes and committed them into your branch directly checkout the last 3 commits.
Can you please review and test again, once you've pulled down my latest commits, to make sure you are happy with my changes to this module?
Cheers
Jack
Hey @faister and @jtracey93 When this PR is merged I have the #173 ready for review, as it will support both standard Hub & Spoke and Azure WAN spoke peering. |
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.
@jtracey93
final test done, see az cli deployment output below:
deploymenttest-final.txt
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.
LGTM 👍👍
Overview/Summary
Connect a spoke virtual network to a Virtual WAN virtual hub. Example shows how a Vnet in one region, i.e., WestUS can be peered with Vwan virtual hub in another region, EastUS.
This PR fixes/adds/changes/removes
Breaking Changes
N/A
Testing Evidence
As part of this Pull Request I have
main
branch