Pcornel
Cloud · Microsoft Azure › Azure Networking

VPN Gateway and ExpressRoute

Cheat sheet · https://pcornel.dk/topic.php?topic=7004

Back to the Topic

Answer

Azure VPN Gateway connects networks to a VNet with IPsec over the internet (site-to-site, point-to-site, VNet-to-VNet). ExpressRoute connects on-premises to Microsoft over a private circuit from a connectivity provider, with BGP to two Microsoft edge routers. Both terminate in a virtual network gateway in the VNet's GatewaySubnet.

Remember

GatewaySubnet must be named exactly that, /27 or larger, with nothing else in it, no NSG and BGP route propagation enabled. Use AZ SKUs for new VPN gateways; policy-based cannot be converted to route-based. ExpressRoute is private but not encrypted by default; each circuit has two links to two MSEEs and needs both BGP sessions up.

First checks

  • az network vnet-gateway show — SKU, type, active-active, BGP.
  • az network vpn-connection show — connectionStatus.
  • az network vnet-gateway list-bgp-peer-status / list-learned-routes.
  • az network express-route show / list-route-tables — circuit and provider state, routes per peering.

Verify in this order

on-premises router/VPN device → internet IPsec or provider circuit → MSEE (ExpressRoute) → virtual network gateway (GatewaySubnet) → BGP/static routes → VNet effective routes → NSGs → VM

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=7004

Confirmation

Confirm action

Continue?