NetworkingIntermediate42 min read

What Is Global VNet peering in Networking?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security
On This Page

Quick Definition

Global VNet peering lets you connect two virtual networks even if they are in different parts of the world. Think of it like having two separate offices in different cities that are connected by a private, fast road so they can share files and talk instantly. This connection does not go through the public internet, which makes it more secure and reliable. It is a core feature for building global applications in Microsoft Azure.

Common Commands & Configuration

az network vnet peering create --name peer-vnet1-to-vnet2 --vnet-name vnet1 --remote-vnet /subscriptions/.../vnet2 --allow-vnet-access

Creates a Global VNet peering from vnet1 to vnet2. The --remote-vnet parameter specifies the full resource ID of the remote VNet. The --allow-vnet-access flag enables traffic flow. This must be run on both VNets to establish connectivity.

Tests the ability to reference remote VNets by resource ID, which is required for cross-subscription peering. Often appears in AZ-104 labs.

az network vnet peering create --name peer-vnet2-to-vnet1 --vnet-name vnet2 --remote-vnet /subscriptions/.../vnet1 --allow-vnet-access

The reverse peering created on vnet2 to vnet1. Without this, the peering remains in 'Initiated' state. Both must be in 'Connected' for traffic to flow.

Classic exam trick: forgetting to create the reverse peering. AZ-104 questions often ask why connectivity fails after creating only one side.

az network vnet peering list --vnet-name vnet1 --resource-group myRG --output table

Lists all peering connections for vnet1 in a table format, showing name, peering state (Initiated, Connected, etc.), and remote VNet ID.

Used for troubleshooting peering states. In exams, you must interpret the state to diagnose connectivity issues.

az network vnet peering show --name peer-vnet1-to-vnet2 --vnet-name vnet1 --resource-group myRG

Shows detailed information about a specific peering, including provisioningState, peeringSyncLevel, and allowGatewayTransit parameters.

Tests understanding of peering properties like allowGatewayTransit, which is important for hub-spoke topologies.

az network vnet peering delete --name peer-vnet1-to-vnet2 --vnet-name vnet1 --resource-group myRG

Deletes the peering on vnet1. The corresponding peering on vnet2 automatically changes to 'Disconnected' state.

Exams ask about cascading effects: deleting one side breaks the entire peering, even if the other side still exists.

az network vnet peering update --name peer-vnet1-to-vnet2 --vnet-name vnet1 --resource-group myRG --allow-forwarded-traffic true

Updates an existing peering to allow forwarded traffic from an NVA. Required for hub-spoke designs with transitive routing.

Critical for scenarios requiring traffic to pass through an NVA. AZ-104 and Network Plus test this configuration.

Get-AzVirtualNetworkPeering -VirtualNetworkName vnet1 -ResourceGroupName myRG

PowerShell equivalent to list peerings for vnet1. Returns peering objects with states and properties.

Powershell is also tested in AZ-104. Know both CLI and PowerShell commands for cross-platform skills.

Must Know for Exams

Global VNet peering appears prominently on several Azure certification exams, most notably the Azure Administrator (AZ-104) and Azure Solutions Architect (AZ-305) exams. It is also relevant for the Azure Developer (AZ-204) exam, especially in scenarios involving multi-region applications. For the Azure Fundamentals (AZ-900) exam, it appears at a conceptual level, focusing on what it is and when to use it.

On the AZ-104 exam, Global VNet peering is a core objective under the 'Configure and manage virtual networking' domain. You can expect questions that ask you to configure a peering between two VNets in different regions, troubleshoot why a peering is not working, or design a network topology that connects on-premises to multiple Azure regions. Typical question types include multiple-choice, drag-and-drop ordering of steps, and case study scenarios.

For the AZ-305 exam, the focus shifts to design. You might be asked to recommend a connectivity solution for a global application. The correct answer often involves Global VNet peering combined with Azure Front Door or Traffic Manager for load balancing. You need to understand when to use VNet peering versus a VPN gateway versus ExpressRoute. The exam also tests your knowledge of cost implications and the non-transitive nature of peering.

On the AWS side, the equivalent concept is VPC Peering, which is tested on the AWS Solutions Architect Associate (SAA-C03) exam. AWS VPC Peering also supports cross-region connections. However, AWS VPC Peering is also non-transitive. Understanding the similarities and differences between Azure Global VNet peering and AWS VPC Peering is valuable for multi-cloud certification preparation.

The CompTIA Network+ and CCNA exams do not directly test Azure-specific features like Global VNet peering, but they cover the underlying networking principles: routing, non-transitive peering, BGP, and IP address management. For example, the concept of non-transitive peering is similar to the way BGP route propagation works in traditional networks. So while Global VNet peering itself is not on those exams, the knowledge reinforces broader networking concepts.

For the Google Cloud ACE exam, the equivalent is VPC Network Peering, which also supports cross-region connections. The same principles apply: non-transitive, no overlapping IP ranges, and gateway transit options. If you understand Global VNet peering, you can easily adapt to Google Cloud or AWS.

Exam questions often include a scenario where you need to connect a VNet in the US to a VNet in Europe. The distractor answers might include using a VPN gateway or ExpressRoute when Global VNet peering is the simpler and cheaper option. Another common trap is that peering automatically allows transitive routing. Understanding that it does not is critical.

Simple Meaning

Imagine you work for a company that has two branch offices: one in New York and one in London. Each office has its own local network of computers, printers, and servers. Normally, if someone in New York wants to access a file server in London, the data would have to travel across the public internet, which can be slow, insecure, and unpredictable. Now imagine you build a private, high-speed tunnel that directly connects the two office networks. That tunnel is what Global VNet peering does in the cloud.

In Microsoft Azure, a virtual network (or VNet) is like your own private network in the cloud. You can put virtual machines, databases, and other resources inside that VNet. If you have resources in two different VNets that are in the same Azure region (like both in US East), you can use standard VNet peering to connect them. But what if one VNet is in US East and the other is in Europe West? That is where Global VNet peering comes in. It allows you to peer VNets across different Azure regions, even across continents.

When you set up Global VNet peering, Azure creates a connection using Microsoft's own global network backbone. That backbone is a massive network of fiber optic cables and routers that Microsoft owns and operates. Your data travels through that private network instead of going out to the public internet. That means lower latency, better security, and more consistent performance.

There is one important catch: Global VNet peering is not transitive. That means if VNet A is peered with VNet B, and VNet B is peered with VNet C, VNet A cannot automatically talk to VNet C. You have to create separate peerings for each pair. This is a common point of confusion and a frequent exam trap.

Another key point is that you can use Global VNet peering even if the VNets have overlapping IP address ranges. Actually, Azure will not let you create the peering if the address spaces overlap. You must plan your IP addressing carefully when designing global networks.

Global VNet peering is a foundational concept for building global, resilient, and high-performance cloud applications. It appears on several Azure certification exams and is also relevant for other cloud platforms because the idea of cross-region network connectivity is universal.

Full Technical Definition

Global VNet peering is a networking feature in Microsoft Azure that enables direct, high-bandwidth, low-latency connectivity between two Azure virtual networks located in different Azure regions. This feature uses the Microsoft global backbone network, a privately owned and operated infrastructure of fiber optic cables, routers, and switches spanning the globe. Data transfer between peered VNets occurs entirely within Microsoft's network, never traversing the public internet. This architecture minimizes exposure to external threats, reduces latency variability, and provides a more consistent networking experience.

At the protocol level, Global VNet peering uses the existing Azure networking fabric. When a peering relationship is established, Azure configures routing tables within the Azure Software Defined Networking (SDN) stack. The SDN controllers program the virtual routers and switches that underpin each VNet to forward traffic directly between the VNets. This is done using BGP-like internal protocols that Azure manages. The traffic between peered VNets is encapsulated and forwarded at Layer 3, meaning it is IP-based routing. Azure ensures that packets are forwarded with minimal hops across the backbone.

There are two types of VNet peering: regional VNet peering, which connects VNets in the same region, and Global VNet peering, which connects VNets in different regions. Both types share the same underlying technology, but Global VNet peering introduces additional considerations. For instance, there is no additional bandwidth constraint imposed by Azure for Global VNet peering, but the physical distance between regions does introduce latency. Azure does not provide any SLA for cross-region latency because it depends on geography and network conditions.

One critical technical detail is that Global VNet peering is non-transitive. A peering relationship exists only between the two VNets that are explicitly paired. To enable transitive routing, you must use a hub-and-spoke topology with a VPN gateway or an Azure Route Server in the hub, or use Azure Virtual WAN. The non-transitive nature is a deliberate design choice to prevent unintended routing loops and to maintain security boundaries.

Another important aspect is the handling of network security groups (NSGs) and firewall rules. Traffic flowing through a Global VNet peering connection is subject to the NSG rules on each subnet within the VNets. By default, all traffic between peered VNets is allowed, but you can apply NSGs to restrict it. For example, you could allow only traffic from specific IP ranges or only on specific ports.

Azure also supports gateway transit with Global VNet peering. This allows one VNet to use the VPN or ExpressRoute gateway of the peered VNet to connect to on-premises networks. However, gateway transit is only supported when the peered VNet has a gateway configured. The peered VNet that uses the gateway must not have its own gateway. This is a powerful capability for reducing costs and simplifying network design.

From a configuration perspective, setting up Global VNet peering requires administrator permissions on both VNets. The peering must be initiated from one side, and then accepted on the other side. Azure validates that the VNets do not have overlapping IP address ranges. If they do, the peering creation fails. The IP address ranges must be unique across all peered VNets to avoid routing conflicts.

Global VNet peering also supports cross-subscription and cross-tenant peerings, provided the appropriate Azure RBAC roles and permissions are in place. This is useful in organizations that manage multiple Azure subscriptions or use Azure Lighthouse for delegated management.

Performance-wise, Global VNet peering offers high throughput. Microsoft claims that VNet peering provides the same latency and bandwidth as if the resources were on the same VNet. In practice, cross-region latency is governed by physics, but the connection remains fast and reliable. There are no data transfer fees for traffic that stays within the same region, but cross-region egress charges apply when using Global VNet peering. These charges are based on the amount of data transferred and the distance between regions.

Global VNet peering is a pillar of Azure networking architecture. It enables scenarios like geo-redundant disaster recovery, multi-region application deployment, and global data replication. Understanding its technical nuances is essential for passing Azure networking exams like AZ-104 and AZ-700.

Real-Life Example

Think of Global VNet peering like a private highway system that connects two corporate campuses in different countries. Suppose your company has a headquarters in New York and a research lab in Tokyo. Each campus has its own internal road network. If an employee at the New York campus wants to send a package to the Tokyo lab, they could use the public postal service (the public internet). That package might get delayed, lost, or inspected by third parties. It is not ideal for sensitive documents.

Now imagine that your company builds a private, guarded highway that connects the New York campus directly to the Tokyo lab. This highway has its own security checkpoints, its own maintenance crew, and its own express lanes. Only authorized vehicles can use it. The trip is predictable, fast, and secure. That is Global VNet peering.

In this analogy, each campus represents an Azure VNet. The internal road network of a campus is the subnet structure within that VNet. The private highway is the peering connection established through the Microsoft global backbone. The security checkpoints are the network security groups (NSGs) that you can configure to allow or block specific types of traffic. The express lanes represent the low-latency path that data takes because it bypasses the public internet.

Translating this to IT: The New York VNet contains virtual machines running a web application. The Tokyo VNet contains a database that the web application needs to query. Without Global VNet peering, the web application would have to send requests over the public internet, which is slower and less secure. With Global VNet peering, the web server can connect directly to the database server as if they were in the same building. The traffic stays on Microsoft's backbone, which is faster and more secure.

One more nuance: In the highway analogy, if you build a private highway between New York and Tokyo, and another private highway between Tokyo and London, you cannot automatically drive from New York to London using those two highways unless you build a direct connection between New York and London as well. That is the non-transitive nature of Global VNet peering. Each pair of campuses needs its own direct highway.

This analogy also highlights the cost aspect. Building and maintaining a private highway is expensive. Similarly, Global VNet peering incurs egress charges for data crossing regions. But for many applications, the benefits of security, performance, and reliability far outweigh the costs.

Why This Term Matters

Global VNet peering matters because it is the foundation for building global, resilient, and high-performing cloud applications in Azure. Without it, connecting resources across regions would force traffic over the public internet, exposing it to latency spikes, packet loss, and security risks. In a world where businesses operate globally, being able to connect virtual networks across continents with predictable performance is critical.

For IT professionals, understanding Global VNet peering is essential for designing disaster recovery solutions. For example, you can run an active application in one region and a standby copy in another. If the primary region fails, you can failover to the secondary region. Global VNet peering ensures that the two environments can communicate efficiently to replicate data and state.

It also enables multi-region application architectures. You can place front-end servers in multiple regions close to users, and have them all connect to a central database in a single region. This reduces latency for end users while keeping data consistent. Without Global VNet peering, each front-end would need a separate internet-facing connection, which is harder to manage and secure.

From a cost perspective, Global VNet peering can reduce egress costs compared to using VPN gateways or third-party network appliances for cross-region traffic. Azure charges lower rates for peering egress than for internet egress. For data-intensive workloads, the savings can be substantial.

Finally, Global VNet peering is a high-scoring topic on Azure certification exams. Knowing how to configure it, its limitations (non-transitive, no overlapping IP ranges), and how to troubleshoot it (checking peering status, verifying NSG rules) is directly tested. It is not just theoretical knowledge; it is a practical skill that cloud administrators use daily.

How It Appears in Exam Questions

Global VNet peering appears in exam questions in several distinct patterns. The most common is a scenario-based question where you are given two VNets in different regions and asked to enable connectivity between them. The correct answer is to configure Global VNet peering. Distractors might include setting up a site-to-site VPN between the VNets, using ExpressRoute, or deploying a virtual network gateway in each VNet.

Another pattern involves troubleshooting. The question might describe that a peering is established but resources cannot communicate. You need to check multiple factors: Are the NSG rules allowing traffic? Are the route tables correct? Is the peering status 'Connected'? Is the DNS resolution working? Questions often ask you to identify the most likely cause from a list of options.

Configuration order questions are also common. For example, you might be asked to put the steps to create a Global VNet peering in the correct sequence: 1) Ensure VNets do not have overlapping IP spaces, 2) Initiate peering from the first VNet, 3) Accept peering from the second VNet, 4) Verify the peering status. Missing the step to check for overlapping IP addresses is a common mistake.

Design questions ask you to choose the best connectivity solution for a given requirement. For instance, 'A company has an application in US East and a database in Europe West. They need low-latency, secure connectivity without going over the internet. What should they use?' The answer is Global VNet peering. But if the requirement includes connecting to an on-premises datacenter, the answer might involve ExpressRoute or a VPN gateway combined with peering.

Another question type tests the non-transitive nature. You might have three VNets: A, B, and C. A is peered with B. B is peered with C. The question asks whether A can communicate with C. The correct answer is no, because peering is non-transitive. You would need a direct peering between A and C, or use a hub VNet with a gateway.

Cost questions appear as well. You might be asked which connectivity option is most cost-effective for cross-region traffic. Global VNet peering is often cheaper than VPN gateways for high-volume traffic because there are no per-hour gateway costs, only data transfer charges.

Finally, exam questions sometimes combine Global VNet peering with Azure DNS. If you need name resolution across peered VNets, you have to configure custom DNS servers or use Azure private DNS zones. The question might ask how to enable name resolution between two VNets that are globally peered.

Practise Global VNet peering Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

Contoso Corporation has two Azure subscriptions. The first subscription contains a VNet named 'US-VNet' deployed in the East US region. This VNet hosts the company's front-end web servers. The second subscription contains a VNet named 'EU-VNet' deployed in the West Europe region. This VNet hosts the company's backend customer database.

The web servers in US-VNet need to query the database servers in EU-VNet to process customer requests. The company wants to ensure that all traffic between these VNets stays secure and does not traverse the public internet. They also want to minimize latency as much as possible.

The solution is to establish Global VNet peering between US-VNet and EU-VNet. First, the network administrator checks the IP address ranges of both VNets. US-VNet uses 10.1.0.0/16 and EU-VNet uses 10.2.0.0/16. There is no overlap, so they can proceed.

The administrator logs into the Azure portal and navigates to US-VNet. Under 'Peerings', they click 'Add' and create a new peering with the name 'To-EU-VNet'. They select the option to 'Allow traffic from remote VNet' and 'Allow forwarded traffic'. They also enable 'Allow gateway transit' if needed. Then they specify the EU-VNet's resource ID or select it from the same Azure Active Directory tenant when it is in the same directory.

Next, the administrator navigates to EU-VNet and accepts the incoming peering request. They also configure it to allow traffic from US-VNet. After a few minutes, the peering status shows 'Connected' for both sides.

To verify connectivity, the administrator deploys a test virtual machine in each VNet and tries to ping the private IP of the remote VM. They confirm that the ping succeeds. They also check that the network security groups on each subnet allow ICMP traffic. Finally, they configure the application to use the private IP addresses of the database servers, ensuring that all traffic stays on the Microsoft backbone.

This scenario shows how Global VNet peering is used in a real-world multi-region application. The key steps are IP range verification, initiating the peering, accepting it, verifying connectivity, and adjusting security rules.

Common Mistakes

Assuming Global VNet peering supports transitive routing

Global VNet peering is non-transitive. If VNet A is peered with VNet B, and VNet B is peered with VNet C, VNet A cannot communicate with VNet C through VNet B. You need a direct peering between A and C.

Always create a direct peering for each pair of VNets that need to communicate, or use a hub-and-spoke topology with a VPN gateway or Azure Virtual WAN for transitive routing.

Attempting to peer VNets with overlapping IP address ranges

Azure validates that the IP address spaces of the two VNets do not overlap. If they do, the peering creation fails with an error. Overlapping IPs would cause routing conflicts.

Design your VNet address spaces carefully before creating peerings. Use unique, non-overlapping IP ranges for all VNets that will be peered. Use tools like Azure IP address planning guides.

Forgetting to configure network security groups (NSGs) to allow traffic

By default, Global VNet peering allows all traffic between the VNets. However, if NSGs are applied to subnets or NICs, they can block traffic. If you forget to create NSG rules that allow the desired traffic, connectivity will fail even though the peering is 'Connected'.

After establishing the peering, check the NSG rules on both sides. Ensure that inbound and outbound rules allow traffic between the VNets on the required ports and protocols. Use Azure Network Watcher to verify connectivity.

Thinking Global VNet peering works across different cloud providers

Global VNet peering is an Azure-specific feature. It only connects Azure VNets. It cannot be used to connect an Azure VNet to an AWS VPC or a Google Cloud VPC.

For multi-cloud connectivity, use a VPN gateway, ExpressRoute with a partner interconnect, or a third-party SD-WAN solution. Understand the limitations of native peering.

Confusing Global VNet peering with a VPN gateway connection

Global VNet peering directly connects VNets without a gateway. A VPN gateway connection requires a gateway in each VNet, incurs hourly costs, and has bandwidth limitations. They are different solutions for different scenarios.

Use Global VNet peering for direct VNet-to-VNet connectivity. Use VPN gateways for site-to-site or point-to-site VPNs, or when you need transitive routing through a gateway.

Assuming that Global VNet peering is free or costs the same as regional peering

Global VNet peering incurs egress charges for data that crosses Azure regions. Regional peering (within the same region) typically has lower or no data transfer costs. The cost can be significant for high-volume traffic.

Factor data transfer costs into your design. Use Azure Pricing Calculator to estimate costs. Consider placing frequently communicating resources in the same region to avoid cross-region charges.

Exam Trap — Don't Get Fooled

{"trap":"The exam presents a scenario where VNet A is peered with VNet B, and VNet B is peered with VNet C. The question asks 'Can a resource in VNet A communicate with a resource in VNet C?' Many learners incorrectly answer 'Yes' because they think traffic can flow through VNet B."

,"why_learners_choose_it":"Learners often think of peering as a 'bridge' that connects all networks together. They are used to the idea that if two networks are connected, traffic can flow through intermediate hops. They forget that Azure VNet peering is explicitly non-transitive."

,"how_to_avoid_it":"Memorize the rule: Azure VNet peering is non-transitive. If you need transitive routing, you must use a hub VNet with a VPN gateway, an Azure Route Server, or Azure Virtual WAN. In the exam, when you see three VNets in a chain, always assume no connectivity between the ends unless a hub is involved."

Commonly Confused With

Global VNet peeringvsSite-to-Site VPN

Global VNet peering connects two Azure VNets directly using the Microsoft backbone, with no VPN gateway required. Site-to-Site VPN uses a VPN gateway in each VNet and encrypts traffic over the public internet. Global VNet peering is simpler and has lower latency, but does not support transitive routing. Site-to-Site VPN can connect to on-premises networks and supports transitive routing through the gateway.

Use Global VNet peering to connect two cloud applications in different regions. Use Site-to-Site VPN to connect your Azure VNet to your on-premises office network.

Global VNet peeringvsRegional VNet peering

Regional VNet peering connects VNets within the same Azure region, while Global VNet peering connects VNets across different regions. The configuration steps are identical, but Global VNet peering incurs data transfer charges and may have higher latency due to distance. Both are non-transitive.

If your web server and database are both in East US, use regional peering. If your web server is in East US and your database is in West Europe, use Global VNet peering.

Global VNet peeringvsExpressRoute

ExpressRoute is a dedicated private connection from your on-premises network to Azure, provided by a connectivity provider. It does not directly connect two Azure VNets. Global VNet peering is specifically for connecting Azure VNets to each other. ExpressRoute can be combined with Global VNet peering to create hybrid networks.

Use ExpressRoute to connect your corporate datacenter to Azure. Use Global VNet peering to connect that Azure VNet to another Azure VNet in a different region.

Global VNet peeringvsAzure Virtual WAN

Azure Virtual WAN is a managed networking service that provides a hub-and-spoke architecture with transitive routing. It can connect VNets, branches, and on-premises networks. Global VNet peering is a simpler, point-to-point connection between two VNets. Virtual WAN is more complex but offers more features like automatic routing and security.

Use Global VNet peering for a simple two-VNet connection. Use Azure Virtual WAN if you have many VNets and branch offices that all need to communicate.

Step-by-Step Breakdown

1

Plan IP Address Spaces

Before creating any peering, verify that the VNets you want to connect have non-overlapping IP address ranges. Azure checks this during peering creation. If they overlap, the peering fails. This step is critical because once VNets are deployed, changing IP ranges is difficult.

2

Check Permissions

You need appropriate Azure RBAC permissions on both VNets to create and accept peerings. Typically, you need the 'Network Contributor' role or a custom role that includes the Microsoft.Network/virtualNetworks/peer/action permission. Cross-subscription peerings may require additional permissions.

3

Initiate Peering from the First VNet

In the Azure portal, navigate to the first VNet (VNet-A). Under 'Peerings', click 'Add'. Give the peering a name (e.g., 'To-VNet-B'). Select the resource manager deployment model (both VNets must be resource manager). Choose 'Allow traffic from remote VNet' to enable communication. Optionally, enable 'Allow forwarded traffic' if you need a hub-spoke setup, and 'Allow gateway transit' if this VNet has a gateway.

4

Specify the Remote VNet

Select the second VNet (VNet-B) by either choosing it from the same Azure Active Directory tenant or entering its resource ID. If the VNet is in a different subscription or region, you must use the resource ID. You also need to acknowledge that Global VNet peering will incur data transfer costs.

5

Accept Peering on the Second VNet

Navigate to VNet-B in the Azure portal. Under 'Peerings', you will see the pending peering request. Select it and click 'Accept'. You must also configure the inbound and outbound settings. Ensure that 'Allow traffic from remote VNet' is enabled. If you want VNet-B to use VNet-A's gateway, also enable 'Use remote gateway' (but VNet-B must not have its own gateway).

6

Verify Peering Status

After both sides are configured, check the peering status. It should show 'Connected' for both VNets. If the status is 'Disconnected' or 'Pending', double-check that both sides have accepted and that there are no conflicts. A 'Disconnected' status usually means one side did not complete the configuration.

7

Configure Network Security Groups and Route Tables

Even though the peering is connected, traffic may be blocked by NSGs or route tables. Ensure that NSG rules on each subnet allow the desired traffic between the VNets. Check that no custom route tables override the default peering routes. Use Azure Network Watcher's 'IP flow verify' to test connectivity.

8

Test Connectivity

Deploy a test VM in each VNet, or use existing resources. Try to ping the private IP address of a resource in the other VNet. If ping is blocked, try a port-based test using tools like Test-NetConnection or telnet. Confirm that DNS resolution works if you have configured it.

9

Monitor and Maintain

Enable diagnostic logs for the peering to monitor traffic and errors. Regularly check the peering status, especially after any changes to the VNets. Be aware that deleting a VNet automatically removes its peerings. If you recreate the VNet, you must also recreate the peerings.

Practical Mini-Lesson

Global VNet peering is a fundamental skill for any Azure network engineer. In practice, you will use it to build multi-tier applications across regions, support disaster recovery, and enable data replication. The configuration is straightforward, but the troubleshooting is where experience matters.

When you first set up Global VNet peering, always start by verifying the IP address ranges. Use the Azure portal or CLI to list the address spaces of both VNets. Write them down and check for overlaps. Even a single overlapping subnet will cause the peering to fail. If you have overlapping ranges, you cannot use VNet peering. You would need to use a VPN gateway with Network Address Translation (NAT) or redesign your IP addressing.

After creating the peering, the most common issue is that resources cannot communicate even though the peering status is 'Connected'. The first thing to check is the NSG rules. By default, NSGs allow all outbound traffic but block all inbound traffic unless explicitly allowed. If you have not added rules to allow inbound traffic from the peered VNet, the resources will reject the connection. Use Azure Network Watcher's 'IP flow verify' tool to test traffic between two VMs. It will tell you if the traffic is allowed or blocked by an NSG or route.

Another practical tip: DNS resolution is not automatic. If you need to resolve hostnames across VNets, you must configure custom DNS. The easiest way is to create an Azure private DNS zone and link it to both VNets. This allows you to use private IP addresses for your resources without hardcoding IPs. For example, you can create a DNS record for 'db.contoso.com' that resolves to the private IP of your database server, and both VNets can use it.

Cost management is another practical concern. Global VNet peering charges are based on data transfer, and the rates vary by region. For example, traffic from US East to Europe West costs more than between two regions in the same continent. If you have high-volume data replication, the cost can add up quickly. Consider compressing data before transfer, or architect your application to minimize cross-region traffic. You can also use Azure Front Door to cache content at edge locations, reducing the need for cross-region calls.

What can go wrong? Peering can break if one of the VNets is deleted or if its address space changes. Azure does not automatically recreate peerings. You must monitor for changes and be ready to reconfigure. Also, if you use gateway transit, note that the gateway VNet must have a running gateway. If the gateway is stopped or deleted, the peered VNet loses connectivity to on-premises.

In enterprise environments, you often deal with multiple subscriptions and tenants. Cross-subscription Global VNet peering requires careful RBAC management. When using a service principal or a user from another tenant, you need to grant the appropriate permissions. The same applies to cross-tenant scenarios.

Finally, always test in a non-production environment first. Create a sandbox with two VNets in different regions, configure the peering, and run your application tests. This will help you identify any NSG, routing, or DNS issues before affecting production traffic.

Understanding Global VNet Peering Definition and Scope

Global VNet peering is a networking feature in Microsoft Azure that connects two virtual networks (VNets) located in different Azure regions. Unlike standard VNet peering, which is limited to VNets within the same region, Global VNet peering enables seamless connectivity across regional boundaries, allowing resources in one region to communicate with resources in another as if they were on the same local network. This is a fundamental capability for building multi-region, high-availability, and disaster recovery architectures. The connectivity is established over Microsoft's backbone network, which is a private, high-capacity global infrastructure that bypasses the public internet. This ensures low latency, high throughput, and enhanced security because traffic never traverses the public internet.

From an architectural perspective, Global VNet peering is a non-transitive, one-to-one relationship between two VNets. This means that if VNet A is peered with VNet B, and VNet B is peered with VNet C, VNet A does not automatically get connectivity to VNet C. To enable communication between VNet A and VNet C, you must explicitly create a separate peering connection between them. This non-transitive nature is a critical concept tested in Azure exams (AZ-104, Azure Fundamentals) because it influences how you design network topologies, such as hub-and-spoke or mesh networks. In a hub-and-spoke design, the hub VNet must be peered individually with each spoke VNet, and spokes cannot communicate directly unless you configure additional peering or use a network virtual appliance (NVA) in the hub.

The scope of Global VNet peering extends to any Azure region globally, with few exceptions such as sovereign clouds (e.g., Azure Government or Azure China 21Vianet) where peering is restricted to within that cloud. It supports both VNets in the same subscription and VNets in different subscriptions, as long as the appropriate Azure RBAC permissions are granted. Global VNet peering works with Azure Resource Manager (ARM) VNets, but it does not support classic (ASM) VNets. This is a key distinction: you cannot peer a classic VNet with an ARM VNet using Global VNet peering; you would need to use a VPN gateway instead.

In terms of usage, Global VNet peering is commonly used to connect microservices across regions for data replication, to connect a primary site in one region to a disaster recovery site in another, or to federate separate applications that need to communicate privately. It eliminates the need for public IP addresses on VMs for inter-region communication, reduces egress costs compared to internet-based traffic, and simplifies network management by avoiding complex VPN or ExpressRoute configurations. However, it's important to note that Global VNet peering does not support transitive routing by default, and if you need traffic to pass through an NVA, you must configure user-defined routes (UDRs) and network virtual appliances appropriately. This scope and these limitations are frequently tested in the AZ-104 and Google Cloud Digital Leader exams, where you must understand when to use peering versus VPN or Cloud VPN.

How Global VNet Peering Cost and Bandwidth Work

Global VNet peering costs are a critical consideration for Azure architects and developers because they directly impact operational budgets and architecture decisions. Unlike standard VNet peering within the same region, which is generally free (though data transfer fees apply), Global VNet peering incurs charges for both inbound and outbound data transferred across the peering connection. These charges are based on the amount of data traversing the peering link and are billed at specific rates depending on the source and destination regions. For example, data egress from East US to West Europe will have a different rate than data egress from East US to same-region resources. The pricing is tiered: data transfer between two Azure regions within the same continent (e.g., North America to North America) is cheaper than data transfer across continents (e.g., North America to Asia Pacific). This cost structure is important for multi-region applications where high data volumes can lead to significant expenses.

Bandwidth on Global VNet peering is not a fixed limit but is determined by the VM sizes in the peered VNets. The actual available bandwidth is the sum of the network bandwidth of all VMs in the peered VNets, but it is constrained by the peering itself. Specifically, Global VNet peering supports up to 10 Gbps per peering connection, though the actual throughput may be lower if the VMs have smaller network capabilities. This is a subtle but important exam point: the bandwidth is not infinite and is shared across all flows in the peering. If you have multiple VMs generating traffic, the aggregate bandwidth cannot exceed the peering's limit. In practice, for high-performance scenarios (e.g., real-time data replication), you may need to distribute traffic across multiple peered VNets or use ExpressRoute for dedicated bandwidth.

Another cost consideration is that Global VNet peering data transfer is billed at the same rate as data transfer across Azure regions via the internet, but the traffic does not leave Microsoft's network, ensuring consistent latency and security. This means if you are using Global VNet peering to replace a public internet connection, you are not saving on egress costs per se, but you gain other benefits like private IP addressing, lower latency, and no exposure to internet threats. However, if you are comparing Global VNet peering to ExpressRoute, ExpressRoute can be more cost-effective for very large data volumes because of its dedicated pricing model, but it also has higher setup costs.

From an exam perspective (especially AWS Cloud Practitioner and AZ-104), the cost model of Global VNet peering vs AWS VPC peering or Google Cloud VPC Network Peering is often compared. AWS VPC peering charges only for data transfer, but global VPC peering in AWS is also charged similarly. For the Azure exams, you need to remember that Global VNet peering data transfer is never free, even within the same continent, unless the VNets are in the same region. There is also a minor nuance: data ingress (inbound) into a VNet via peering is not charged, but egress from the VNet is charged. This is typical of Azure's billing: you pay for data leaving a region.

To optimize costs, you should consider using Azure Virtual WAN or Hub-and-Spoke with NVAs if you need transitive routing, as that can consolidate peering connections and possibly reduce data transfer costs. However, Global VNet peering is generally the simplest and most cost-effective for point-to-point regional connections. The exam often tests your ability to calculate baseline costs or choose between peering and other options based on cost constraints.

Global VNet Peering Connection States and Health Monitoring

Global VNet peering connections go through specific connection states that reflect the provisioning status and health of the peering link. Understanding these states is crucial for troubleshooting and is a common topic in Azure exams (AZ-104, Azure Administrator). There are four primary states: Initiated, Connected, Disconnected, and Revoked. When you create a peering from VNet A to VNet B, the peering on VNet A will initially show as 'Initiated'. At this point, no traffic flows. For the peering to become functional, you must create a corresponding peering on VNet B from VNet B to VNet A. Once that is done, the state on both sides changes to 'Connected'. This two-way creation process is a key exam point: forgetting to create the reverse peering is a common mistake that leads to connectivity failure.

The 'Disconnected' state occurs when one side of the peering is deleted. For example, if you delete the peering on VNet A, the peering on VNet B will automatically change to 'Disconnected'. This state is also temporary and can occur due to network infrastructure changes or resource moves. The 'Revoked' state is less common and typically appears when the peering is purposefully broken by an administrator using Azure policy or RBAC changes that deny access. In all cases, no data can flow through a peering that is not in 'Connected' state.

Health monitoring for Global VNet peering is primarily done via Azure Monitor and Network Watcher. You can use Connection Monitor (a feature of Network Watcher) to test the latency, packet loss, and throughput between two VMs in peered VNets. This is especially important for global peering because regional network conditions can vary. Azure also provides metrics like 'Peering Status' and 'Data Transfer Bytes' in the Azure portal. If the peering status shows 'Connected', you can rely on it, but if it shows a warning or error, you need to investigate. Common health issues include misconfigured network security groups (NSGs) blocking traffic, route tables overriding the peering, or subnet overlapping (which is not allowed in peering).

For exam purposes, you need to know that the peering status is visible in the Azure portal under the VNet resource, under 'Peerings'. You can also use Azure CLI or PowerShell to check. The command 'az network vnet peering show' will return the state. When troubleshooting, always verify that both sides are in 'Connected' state. A classic exam scenario: a user creates a peering on VNet1 to VNet2 but forgets to do the reverse, and then wonders why VMs can't communicate. The answer is that the peering is in 'Initiated' state on VNet1 and the connection is not established. Another scenario: the peering shows 'Connected' but traffic fails. Then the culprit is usually an NSG rule blocking traffic between the VNets' subnets, or a firewall rule on the VMs.

There is also a concept of 'peering sync' for global peering. Azure periodically syncs the routing tables between peered VNets. If the sync is delayed due to regional outages, you might see intermittent connectivity. This is rare but tested. The states and health of Global VNet peering are straightforward but critical, and you should memorize the sequence: Initiated -> (create reverse) -> Connected.

Global VNet Peering vs VPN Gateway: Key Differences and Use Cases

Global VNet peering and VPN gateways are both methods to connect Azure VNets across regions, but they serve different purposes and have distinct characteristics that are heavily tested in certification exams (e.g., AWS Solutions Architect, Azure Administrator, Network Plus). Global VNet peering is a direct, layer-3 connection between two VNets using Azure's backbone network. It provides high bandwidth (up to 10 Gbps), low latency, and private IP communication without any public internet involvement. In contrast, a VPN gateway (either site-to-site or point-to-site) uses IPSec tunnels over the public internet or ExpressRoute. VPN gateways have inherent bandwidth limitations (typically 1.25 Gbps to 10 Gbps depending on SKU), higher latency due to encryption overhead, and additional costs for the gateway itself (hourly plus data transfer).

The primary use case for Global VNet peering is when you need to connect VNets in different regions for private, high-speed communication, such as database replication between primary and secondary regions. It is also ideal for microservices that need to communicate across regions without exposing IP addresses. On the other hand, VPN gateways are preferred when you need to connect on-premises networks to Azure (hybrid connectivity) or when you require encryption in transit for compliance reasons. However, Global VNet peering traffic is already isolated to the Azure backbone, so it is inherently secure without extra encryption, though you can add encryption if needed.

Another key difference is transitive routing. Global VNet peering is non-transitive, meaning you cannot automatically route traffic through an intermediary VNet. If you need transitive routing, you must set up an NVA or use a VPN gateway with route propagation. VPN gateways support BGP and can propagate routes, making them suitable for complex topologies. This is a classic exam question: 'You have three VNets in three regions. You need VNet A to communicate with VNet C via VNet B. Which solution is best?' The answer often involves a VPN gateway in hub-and-spoke configuration or using an NVA, not Global VNet peering alone.

Cost-wise, Global VNet peering has no hourly cost, only data transfer charges. VPN gateways have an hourly cost (varying by SKU) plus data transfer. For small data volumes, peering is cheaper. For very high volumes, a VPN gateway might be more expensive due to hourly costs, but peering's data transfer charges can accumulate. This cost analysis is a common exam scenario.

Global VNet peering supports overlapping IP addresses? No, it does not. Both VNets must have non-overlapping IP address spaces. VPN gateways can handle overlapping IP addresses with Network Address Translation (NAT) on the gateway, but this adds complexity. If you have overlapping IP spaces, you cannot use peering; you must use VPN with NAT. This is a critical differentiator tested in CCNA and Network Plus contexts as well.

choose Global VNet peering for direct, high-speed, private connections between Azure VNets without encryption overhead, and choose VPN gateways for hybrid connections, transitive routing, encryption requirements, or overlapping IP spaces. For exam questions on AZ-104, you'll often need to select between these two based on requirements like bandwidth, cost, or transitive routing.

Troubleshooting Clues

Peering remains in Initiated state

Symptom: The peering on one side shows 'Initiated' and no traffic flows between VNets.

The reverse peering has not been created on the remote VNet. Global VNet peering requires a bidirectional creation; without a corresponding peering on the other side, the connection never becomes 'Connected'.

Exam clue: Exam questions describe an admin who only created one peering and asks why traffic fails. Answer: need to create reverse peering.

Peering shows 'Connected' but no traffic flows

Symptom: Both sides show 'Connected', but VMs cannot ping or connect to each other over private IP.

Network Security Groups (NSGs) on the VM subnets are blocking traffic. NSGs are applied to subnets or NICs and can deny inbound/outbound traffic even if peering is healthy.

Exam clue: AZ-104 questions often show a scenario where peering is connected but firewalls are misconfigured. You need to check NSG rules and add allow rules for the remote VNet address space.

Traffic is routed through the public internet instead of peering

Symptom: Latency is high, and traceroute shows public hops; data transfer costs are higher.

If VMs use public IPs instead of private IPs, traffic may bypass the peering. Also, if user-defined routes (UDRs) force traffic to an NVA or internet gateway, peering is not used.

Exam clue: Network Plus and CCNA exams test routing tables. In Azure, ensure VMs communicate via private IP addresses and check effective routes.

Subnet IP address overlap between peered VNets

Symptom: Peering creation fails with error 'Overlapping address spaces' or connectivity is broken.

Global VNet peering requires non-overlapping IP address ranges. Overlap causes routing conflicts; Azure disallows the peering. This is a design constraint.

Exam clue: Exam questions test planning: before peering, you must ensure address spaces are unique. If they overlap, you cannot use peering; must use VPN with NAT.

Cross-region peering is not available for certain regions

Symptom: When trying to peer VNets across regions, the remote VNet is not listed or creation fails with policy error.

Some Azure regions, especially sovereign clouds (Gov, China), restrict global peering. Also, subscriptions may have policies that block cross-region peering.

Exam clue: In Azure Fundamentals, know that sovereign clouds have limited peering options. This is a specific exam fact.

Transitive routing not working with hub-spoke setup

Symptom: Spoke VNets cannot communicate with each other through a hub VNet even though they are peered to the hub.

Global VNet peering is non-transitive. To allow spoke-to-spoke communication via hub, you need to deploy an NVA in the hub and configure allowForwardedTraffic on peerings, plus UDRs on spokes.

Exam clue: A common AZ-104 scenario: three VNets where only hub-spoke peering is set, and you need to enable spoke-to-spoke communication. Answer: deploy NVA and configure routing.

Peering disconnects unexpectedly after a resource move

Symptom: After moving a VNet to a different resource group or subscription, the peering shows 'Disconnected'.

Peering is tied to resource IDs. Moving a VNet changes its resource ID, breaking the peering. The peering must be recreated after the move.

Exam clue: Exam questions test resource move impacts: peering is not automatically updated. You must redeploy peering after moving resources.

High latency or packet loss despite healthy peering

Symptom: Users report slow application performance between regionally peered VNets, but peering shows 'Connected' and no NSG blocks.

Global VNet peering uses Azure backbone, but network congestion can occur due to high traffic volume, VM network throttling, or regional issues. Check Azure Monitor metrics for bandwidth utilization.

Exam clue: Troubleshooting exams (Network Plus, CCNA) require understanding that peering has bandwidth limits (10 Gbps) and that VM skus affect throughput.

Memory Tip

Global VNet peering: 'Direct private highway across regions. Non-transitive: no free rides through the middle VNet.'

Learn This Topic Fully

This glossary page explains what Global VNet peering means. For a complete lesson with labs and practice, see the topic guide.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Related Glossary Terms

Quick Knowledge Check

1.An Azure administrator creates a Global VNet peering from VNet A to VNet B but forgets to create the reverse peering from VNet B to VNet A. What is the peering state on VNet A?

2.You have two VNets in different Azure regions peered using Global VNet peering. You need to ensure traffic between the VNets stays within the Azure backbone and does not traverse the public internet. Which component guarantees this?

3.A company has three VNets: VNet A, VNet B, and VNet C. VNet A is peered with VNet B, and VNet B is peered with VNet C. The company wants VNet A to communicate directly with VNet C through VNet B. What is the simplest solution?

4.You are troubleshooting a Global VNet peering that shows 'Connected' on both sides, but VMs in the peered VNets cannot communicate. What is the most likely cause?

5.An organization needs to connect two Azure VNets in different regions with low latency and high throughput, but they do not require encryption in transit. Which solution should they use?

6.You create a Global VNet peering between VNet1 (10.0.0.0/16) and VNet2 (192.168.0.0/16). After creation, you try to ping a VM in VNet2 from a VM in VNet1 using its private IP (192.168.0.4). The ping fails. Which step is missing?

Frequently Asked Questions

Can I use Global VNet peering to connect VNets in different Azure clouds (e.g., Azure Government and Azure Commercial)?

No, Global VNet peering only works within the same Azure cloud environment. To connect VNets across different Azure clouds, you need a site-to-site VPN or ExpressRoute.

Is there a limit on the number of Global VNet peerings a VNet can have?

Yes, each VNet has a maximum number of peerings. The default limit is 500 peerings per VNet, but this can be increased by requesting a quota increase from Azure support.

Does Global VNet peering encrypt traffic?

Traffic within Azure's backbone is physically isolated and not exposed to the internet, but it is not encrypted by default. For encryption, use application-level encryption (TLS/SSL) or a VPN gateway.

Can I delete a VNet that has active Global VNet peerings?

You can delete a VNet with active peerings, but the peerings will be automatically removed. The other VNet will show a 'Disconnected' status. You would need to recreate the peering if you recreate the VNet.

Does Global VNet peering support IPv6?

Azure VNet peering supports IPv4 only as of now. For IPv6 connectivity, you must use other solutions like Azure Load Balancer with IPv6 or VPN gateways.

What is the difference between 'Allow forwarded traffic' and 'Allow gateway transit' in peering settings?

'Allow forwarded traffic' lets traffic from a third VNet (via a network virtual appliance) pass through this peering. 'Allow gateway transit' lets the peered VNet use this VNet's VPN/ExpressRoute gateway to connect to on-premises.

How do I monitor data transfer costs for Global VNet peering?

Use Azure Cost Management to monitor data transfer charges. You can filter by service name 'Virtual Network' and look for 'Data Transfer' or 'Bandwidth' meters. Enable diagnostic logs for the peering to see traffic patterns.