Azure – Networking – Part 16 – Azure Virtual Network (VNet) peering

Hello Friends,

I hope you all are doing good 🙂 .Today let’s discuss one more important service ” VNet Peering ” provided by Microsoft Azure. In this article we will go through the basics concept of VNet Peering and will try to keep this article small. In next article we will go through one small use case and will see how to configure a VNet Peering . So Let’s Start 🙂

Tool Installation Articles :

  1. Configure Azure Command Line Interface ( Azure CLI) On Windows
  2. Configure PowerShell For Microsoft Azure Az Module On Windows

Previous Azure Series :

  1. Learn Basics Of Azure Networking In 100 Hours
  2. Learn Basics Of Microsoft Azure Storage services
  3. Learn Basic Of Azure Active Directory And Azure Identity And Access Management
  4. Azure DevOps – Learn at one place
  5. Learn Basics Of Lift-And-Shift Migration To Azure

If you have missed our previous articles on networking, please check them in following links.

Part 9 – Configure Custom Domain In Azure DNS

Part 10 – Issue when Configure DNS Records In Azure DNS

Part 11 – ExpressRoute

Part 12 – Azure VPN Network Gateway

Part 13 – Configure Azure Point-to-Site VPN

Part 14 – Configure Azure VNet-to-VNet Connection

Part 15 – Configure Azure Site-to-Site VPN Connection

Part 17 – VNet Peering 2 – Hub-spoke VNet topology

Next Article : Part 18 – Azure Traffic Manager 1

Virtual network (VNet) peering :

Virtual network peering enables us to seamlessly communicate with Azure virtual networks. Once peered, the virtual networks appear as one, for connectivity purposes. The traffic among virtual machines in the peered virtual networks is routed through the Microsoft backbone infrastructure, much like traffic is routed between virtual machines in the same virtual network, through private IP addresses only.

VNet Peering Types :

1) Default VNet peering – Connecting VNets within the same Azure region.
2) Global VNet peering – Connecting VNets across Azure regions.

Benefits Of VNet Peering :

  • Network traffic between peered virtual networks is private. No public Internet, gateways, or encryption is required in the communication between the virtual networks. Traffic between the virtual networks is kept on the Microsoft backbone network.
  • Established a low-latency, high-bandwidth connection between resources in one virtual network with resources in a different virtual network .
  • VNet Peering enable to transfer data across Azure subscriptions, deployment models, and across Azure regions.
  • Downtime not required to resource in either virtual network configuring the peering.
  • Cost and time savings by centralizing services that can be shared by multiple resources residing in different VNet.

Requirements And constraints:

  • The virtual networks we are peering must have non-overlapping IP address spaces.
  • Resources in one virtual network cannot communicate with the front-end IP address of a Basic internal load balancer in a globally peered virtual network .
  • We can’t add address ranges to, or delete address ranges from a virtual network’s address space once a virtual network is peered with another virtual network.
  • A peering is established between two virtual networks. Peering is not transitive.
  • There is a nominal charge for ingress and egress traffic that utilizes a virtual network peering. 

Permissions To Configure VNet Peering:

To configuring one Virtual Network peering, the user account must be assigned to Network Contributor (for RM resource) or Classic Network Contributor (for classic resource). We can also create and assign a custom role, which assigned with following appropriate actions.

  • Microsoft.Network/virtualNetworks/virtualNetworkPeerings/write
  • Microsoft.Network/virtualNetworks/virtualNetworkPeerings/read
  • Microsoft.Network/virtualNetworks/peer/action
  • Microsoft.ClassicNetwork/virtualNetworks/peer/action

CLI Command To Manage VNet Peering :

  • az network vnet peering create
  • az network vnet peering list
  • az network vnet peering show
  • az network vnet peering update
  • az network vnet peering delete

PowerShell Command To Manage VNet Peering :

  • Add-AzVirtualNetworkPeering
  • Get-AzVirtualNetworkPeering
  • Set-AzVirtualNetworkPeering
  • Remove-AzVirtualNetworkPeering

Hub and Spoke VNet Peering Use case :

Workloads deployed in different environments, such as development, testing, and production, that require shared services such as DNS, IDS, NTP, or AD DS. Shared services are placed in the hub VNet, while each environment is deployed to a spoke VNet to maintain isolation. We can design each environment as one spoke. Resources under different spokes VNet can communicate with each other, if they are peered with Hub VNet without peering with each other because, Hub VNet has option to forward/ redirect traffics to respected spoke VNet. Also spoke VNet can access to shared services deployed on Hub VNet. So all Spoke VNet can be peer with Hub VNet and share all required services. To maintain security we can put Hub VNet in DMZ zone.

I hope this article gives a basic idea of VNet Peering and in next article we have discussed, how to configure VNet Peering to address one use case. My next article of this series is Part 17 – VNet Peering 2 – Hub-spoke VNet topology .

Next Article : Part 18 – Azure Traffic Manager 1

Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more.

If you have any suggestion / feedback / doubt, you are most welcome. Stay tuned on Knowledge-Junction, will come up with more such articles

Thanks for reading  🙂

Manas Ranjan Moharana

I'm a proud Indian, Son, Husband, Father, Author, Blogger, Self motivated person. I lives in Pune, Maharashtra and working for, to build Azure Solutions and Share Point Solutions.Microsoft certified Professional with 14 years of IT experience. Interest in learning and sharing something new, to be healthy.

You may also like...

4 Responses

  1. July 2, 2020

    […] important Azure networking service and that is Azure Traffic Manager. Our last article was on ” VNet Peering ” . In this journey we will go through the basics of Azure Traffic Manager , which I have […]

  2. August 30, 2020

    […] let’s continue with our last article on ” VNet Peering ” and will see how to configure Hub – Spoke topology. In this article we will go […]

  3. December 2, 2021

    […] Part 16 – Azure Virtual Network (VNet) peering […]

  4. February 4, 2022

    […] Chapter 16 – Azure Virtual Network (VNet) peering […]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: