Create a BGP VNET to VNET connection

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Bicep Version

Deploy To Azure Deploy To Azure US Gov Visualize

This template creates two VNETs in the same location, each containing a subnet and Gateway subnet. It creates two public IPs which are used to create two VPN Gateways in the two VNETs, both with BGP enabled using private ASNs. Finally it establishes a BGP enabled connection between the two gateways.

The Autonomous System Numbers (ASNs) can be private or public.

Enter the Pre-shared Key as a parameter. A default one is provided in the Parameters file, but do not use this in Production!

You can also enter a specific Gateway SKU as a parameter; choose from the following:

  • VpnGw1 (default)
  • VpnGw2
  • VpnGw3
  • Standard (legacy)
  • HighPerformance (legacy)

More info on the Gateway SKUs can be found here: https://docs.microsoft.com/azure/vpn-gateway/vpn-gateway-about-vpngateways#a-namegwskuagateway-skus

Tags: Microsoft.Network/virtualNetworks, Microsoft.Network/publicIPAddresses, Microsoft.Network/virtualNetworkGateways, Microsoft.Network/connections