Connect Azure Virtual Networks with VNet Peering

Lab Steps

Logging into the Microsoft Azure Portal
Understanding the Azure Virtual Networking Peering Scenario
Creating the Development Department Network Resources
Attempting to Make a Connection Using Serial Console
Initiating the Virtual Network Peering Connection
Testing the Virtual Network Peering Connection
Validate Connect Azure Virtual Networks with VNet Peering

The hands-on lab is part of these learning paths

AZ-104 Exam Preparation: Microsoft Azure Administrator
course-steps 18 certification 6 lab-steps 16
AZ-103 Exam Preparation: Microsoft Azure Administrator
course-steps 15 certification 6 lab-steps 9

Ready for the real environment experience?

Time Limit1h
star star star star star-half


Lab Overview

Azure virtual network (VNet) peering is established between pairs of virtual networks. Once a peering connection is established they appear as one network for connectivity purposes. Devices in each network can communicate with devices in the other network using private IP addresses. The two networks can be in different regions. This is referred to as global peering. Global peering traffic also stays in Microsoft's private backbone network, and does not traverse the public internet providing superior security and performance.

This Lab describes a scenario where peering can be used and also explains when peering cannot be used. You will create a virtual network including resources in the network, and then create a peering connection with a pre-created virtual network. You will verify the peering connection allows you to communicate between virtual networks using private addresses.

Lab Objectives

Upon completion of this Lab, you will be able to:

  • Configure Azure virtual networks and peering connections between networks
  • Explain the situations when Azure virtual network peering applies
  • Understand alternative Azure networking options when peering does not apply
  • Use Azure VM serial console to test peering connectivity

Lab Prerequisites

You should be familiar with:

  • Basic Azure concepts including the Azure Portal, VMs, and virtual networks


November 6, 2019 - Updated instructions to specifically target creating a CentOS 7.5 VM to avoid phone number and email validation for later releases of CentOS

August 30th, 2019 - Resolved an issue that caused some validation checks to incorrectly report their result status in the case of failure

August 16th, 2019 - Updated the instructions to reflect the ability to create peerings in a single step compared to the two-step approach previously required

Environment before
Environment after

About the Author

Learning paths14

Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, AWS Certified Solutions Architect - Professional, Microsoft Certified Azure Solutions Architect Expert, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), Linux Foundation Certified System Administrator (LFCS), and Certified OpenStack Administrator (COA). He earned his Ph.D. studying design automation and enjoys all things tech.