Variant: Portal lab track (CLI/ARM walkthrough omitted).
Create two VNets, configure peering in both directions, and validate peering status.
[VNet-A 10.30.0.0/16] <----> [Peering] <----> [VNet-B 10.31.0.0/16]
30-45 minutes
- Resources are isolated in one lab resource group.
- No VMs required for this basic peering validation.
- Azure subscription with permission to create VNets and peerings
- Azure Portal access
Use the following values when entering names and settings in the portal steps:
- LOCATION: australiaeast
- PREFIX: az104
- LAB: m02-peering
- RG_NAME: ${PREFIX}-${LAB}-rg
- VNET_A: ${PREFIX}-${LAB}-vnet-a
- VNET_B: ${PREFIX}-${LAB}-vnet-b
- Open Resource groups > Create.
- Set name
${RG_NAME}and region${LOCATION}. - Select Review + create > Create.
- Open Virtual networks > Create.
- In Basics:
- Name:
${VNET_A} - Region:
${LOCATION} - Resource group:
${RG_NAME}
- Name:
- In IP addresses:
- Address space:
10.30.0.0/16 - Subnet name:
default - Subnet range:
10.30.1.0/24
- Address space:
- Select Review + create > Create.
- Repeat VNet creation with:
- Name:
${VNET_B} - Address space:
10.31.0.0/16 - Subnet range:
10.31.1.0/24
- Name:
- Keep region and resource group the same.
- Open Virtual networks >
${VNET_A}> Peerings > + Add. - Configure:
- Peering link name (from
${VNET_A}to remote):peer-a-to-b - Remote virtual network:
${VNET_B} - Traffic to remote VNet: Allow
- Peering link name (from
- Leave gateway transit options disabled for this basic lab.
- Select Add.
- Open
${VNET_B}> Peerings > + Add. - Configure:
- Peering link name:
peer-b-to-a - Remote virtual network:
${VNET_A} - Traffic to remote VNet: Allow
- Peering link name:
- Select Add.
- In
${VNET_A}> Peerings, confirm peering state is Connected. - In
${VNET_B}> Peerings, confirm peering state is Connected. - Confirm address spaces remain non-overlapping.
- In Azure Portal, open Resource groups and select
${RG_NAME}. - Select Overview > Delete resource group.
- Enter
${RG_NAME}to confirm deletion, then select Delete. - Wait for deployment notifications to confirm cleanup is complete.
- Delete the local
.envfile from your lab folder.
- Peering is not transitive by default.
- Peering provides connectivity, not automatic private DNS integration.