MS Learn Module 5 Practical
Intersite Connectivity
Connect isolated virtual networks across regions using Azure VNet Peering to establish a secure, global network backbone.
Concept Refresher: By default, resources in two different Virtual Networks cannot communicate, even if they are in the same subscription. VNet Peering routes traffic between them securely through Microsoft's private backbone infrastructure. Important: The IP address spaces of peered VNets must never overlap!
Exercise 1: Create a Spoke Virtual Network
Assuming you already created `Core-VNet` (10.1.0.0/16) in the previous networking module, we now need a second VNet to connect to it.
- Sign in to the Azure portal.
- In the search bar, type
Virtual networksand select it. Click+ Create. - Basics Tab: Select your Subscription and Resource Group. Name the VNet
Spoke-VNet. Choose a different region than your Core-VNet (e.g., West US). - IP Addresses Tab: You must change the default address space to prevent overlap. Delete the default space and add
10.2.0.0/16. - Add a subnet named
Workloadswith the address range10.2.0.0/24. - Click
Review + create, wait for validation, and clickCreate.
Exercise 2: Configure Global VNet Peering
We will now link the Core-VNet in the East US to the Spoke-VNet in the West US.
- Navigate to your existing
Core-VNetresource. - On the left-hand menu, under Settings, select
Peerings. - Click
+ Add. - Under This virtual network:
- Peering link name:
Core-to-Spoke - Traffic to remote virtual network: Allow
- Traffic forwarded from remote virtual network: Block (unless acting as a hub router)
- Peering link name:
- Under Remote virtual network:
- Peering link name:
Spoke-to-Core - Virtual network: Select your
Spoke-VNetfrom the dropdown. - Traffic to remote virtual network: Allow
- Peering link name:
- Click
Add. Azure automatically provisions the peering connection in both directions simultaneously.
Exercise 3: Verify the Peering Connection
Ensure the connection successfully established and understand how to test it.
- Wait approximately 1-2 minutes after clicking Add.
- In the
Core-VNetPeerings menu, refresh the page. Check the Peering status column. It should readConnected. - Navigate to the
Spoke-VNetresource, check its Peerings menu, and verify it also saysConnected.
Verification: If you were to deploy a Virtual Machine into Core-VNet (10.1.0.4) and another into Spoke-VNet (10.2.0.4), you could log into one and successfully
ping 10.2.0.4 directly over the private IP space.