VNet Peering

  • One of the options for Connecting virtual networks / the best option
  • Peered traffic goes on Azure Backbone network and is private
  • When Networks are peered, we can use Azure VPN Gateway in the peered network for Connecting to Onprem
  • Create VNet Peering in Azure
    • When creating VNet Peering with az cli or [[202207181612 Powershell|Powershell]] only one side of peering gets created. We need to create both sides.
  • Typical topology is hub and spoke
    • VNET2 below is hub
    • Typically you will put the Azure VPN Gateway in this hub network and let other networks use it. Same for other things like NVAs
  • Not transitive i.e. VNET1 can not talk to VNET3 / Need to create peering relationship between them
    • Without peering, I could add Azure Firewall or Network virtual appliance in Hub network (VNET2) and tell:
      • VNET3 if you want to talk to VNET1, next hop is IP of that forwarder
      • VNET1 if you want to talke to VNET3, next hop is IP of that forwarder
    • This above thing is UDR (User defined routing)
  • If we add a new ip address space to one vnet, we just need to sync peering not re-create peering or anything
flowchart LR
VNET1 --> |Peer| VNET2 --> |Peer| VNET3
VNET1 --- |NotTransitive|VNET3

Types

  • global (VNet in different regions)
  • regional (VNet in same region)

references:

MS Learn

To enable gateway transit, configure the Allow gateway transit option in the hub virtual network where you deployed the gateway connection to your on-premises network. Also configure the Use remote gateways option in any spoke virtual networks.

Subscribe to NordLetter

A weekly newsletter on living in Finland.

UPDATED