Virtual network peering enables you to seamlessly connect two Azure virtual 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, through private 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
I have posted my previous article to “Create a virtual network & virtual machine by using the Azure portal” please refer to this
link. Continuing that in this article, we are going to learn about vnet peering across Azure regions.
Step 2
Login into Microsoft Azure ( https://portal.azure.com) portal with your credentials.
Step 3
Click on the Virtual machines button on the left side blade.
Step 4
To get to 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 internally will get connected by private IP’s only.
If you want to allow people to connect the VM through RDP, make sure while creating VM you have selected “Allow selected ports” option in public inbound section.
Step 6
To verify the RDP click on the Connect button, then in the right side panel click on the Download RDP File button and the RDP file will be downloaded.
If you are a windows user then click on the RDP, enter the server IP address with VM username and password.
Step 7
Repeat the steps Step: 15 - Step: 24 which is mentioned in my previous article to create another new the VM.
Step 8
Click on the Virtual networks button to open virtual network setup.
Step 9
Click on the Peerings button and then click on the Add button to create new peering.
Step 10
Enter the name, select virtual network and click on the OK button.
Step 11
Open the VM which has public IP enabled and then enter “cmd” in the run, hit enter.
Step 12
Enter the IP private IP address of another VM then you have enabled ping status.