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

Spoke Vnet peering with Vwan virtual hub #185

Merged
merged 17 commits into from
Mar 24, 2022
Merged

Conversation

faister
Copy link
Contributor

@faister faister commented Mar 11, 2022

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

  1. Adds vnetPeeringVwan module.
  2. Resolves 💡 Feature Request - Enable Azure Virtual WAN scenario in the Hub Networking module #133
  3. Implements SE Backlog Item 99027

Breaking Changes

N/A

Testing Evidence

deploymentstatus

deployment-detailed

vnetPeeringVwanExampleDeploymentOutput

spokevnetpeering

As part of this Pull Request I have

  • Checked for duplicate Pull Requests
  • Associated it with relevant ADO items
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Performed testing and provided evidence.
  • Updated relevant and associated documentation.

@faister faister requested review from jfaurskov and jtracey93 March 11, 2022 23:36
@faister faister self-assigned this Mar 11, 2022
Copy link
Collaborator

@jtracey93 jtracey93 left a 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?

@faister
Copy link
Contributor Author

faister commented Mar 21, 2022

Nice work @faister Fai Lai FTE.

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?

@ghost ghost removed the Needs: Author Feedback label Mar 21, 2022
@jtracey93
Copy link
Collaborator

Hey @faister,

let's not do the Spoke VNET creation at all here, just the VWAN Connection/Peering.

And then can create a "mini-orchestration" module that does all these together which I believe @KiZach is going to create once this is merged as part of #173 👍👍

@faister
Copy link
Contributor Author

faister commented Mar 22, 2022

Hey @faister,

let's not do the Spoke VNET creation at all here, just the VWAN Connection/Peering.

And then can create a "mini-orchestration" module that does all these together which I believe @KiZach is going to create once this is merged as part of #173 👍👍

done, will do some testing tomorrow

@faister faister requested a review from jtracey93 March 23, 2022 06:10
Copy link
Collaborator

@jtracey93 jtracey93 left a 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

docs/wiki/DeploymentFlowVWAN.md Outdated Show resolved Hide resolved
@KiZach
Copy link
Contributor

KiZach commented Mar 23, 2022

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.

@ghost ghost removed the Needs: Author Feedback label Mar 24, 2022
Copy link
Contributor Author

@faister faister left a 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

Copy link
Collaborator

@jtracey93 jtracey93 left a comment

Choose a reason for hiding this comment

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

LGTM 👍👍

@jtracey93 jtracey93 merged commit f38bff3 into Azure:main Mar 24, 2022
@faister faister deleted the SEBacklog-99027 branch March 25, 2022 00:03
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.

💡 Feature Request - Enable Azure Virtual WAN scenario in the Hub Networking module
3 participants