Virtual network peering enables you to seamlessly connect two Azurvirtual networks. Once peered, the virtual networks appear as one, for connectivity purposes. The traffic between 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, throughprivate IP addresses only. Azure supports:

  • VNet peering - connecting VNets within the same Azure region
  • Global VNet peering - connecting VNets across Azure regions

Source Microsoft Doc



Step 1: Virtual networking

I have posted my previous article to “Create a virtual network & virtual machine by using the Azure portal” please refer this link . Continuing that this article we are going to learn about vnet peering across azure regions.

Step  2: Log in

Log in to Microsoft azure ( portal with your credential

Step 3: Go to VMs

Click on the   button in the left side blade.   



Step 4:VM Details

To get know more details of the virtual machine then click on the VM which is available in the Virtual machines page.



Note: every vm in azure interally it will get connected through by private IP’s only

if  you want allow people to connect the vm through RDP , make sure while creating vm you have selected “Allow selected ports” option in pulic inbound section. please refer this link  to more details to creating the vm.


Step 5: Verify RDP

to verify the RDP click on the   button then right side panel click on the    buton the RDP file would be downloaded.



If you are a windows user then click on the RDP ,enter the server IP address with vm user name and password.



Repeat the steps Step: 15 - Step: 24 which is mentioned in my previous (please refer this link )  article to create another new the vm.



Step 6: VNet setup

Click on the   button to open virtual network setup


Step 7: Peering

Click on the   button and then clik on    the button to create new peering

Enter the name ,select virtual network and click on the   button.

Step 8: Open CMD

Open the vm which has public IP enabled and then enter “cmd” in the run , hit enter.


Step 9: Check status

enter the private IP address of the another vm then you can able to ping status.