Introduction
Through Azure Virtual Network Peering, virtual networks in the same or separate regions can be connected. Secure communication between resources in the peering networks is facilitated by Azure Virtual Network peering. Azure Virtual Network peering comes in two types: regional and global.
Azure virtual networks located in the same region can be connected using regional virtual network peering.
Azure virtual networks located in various locations are connected through global virtual network peering.
We will be looking at regional virtual network peering in this article and the steps involved are shown below.
NOTE: The Network Contributor or Classic Network Contributor must have an Azure account given to them in order to implement virtual network peering.
- Log in to your azure account.
- Click create a resource
- Search for virtual network in the Market place
- Fill in the project details which comprises subscription and resource group
- Then fill the instance details which comprises virtual network name and region.
- Change the tab from Basics to Ip addresses
- Edit the Ipv4 address space to 10.1.0.0
- We are going to create two subnets: frontend and backend with subnet address range 10.1.0.0/24 and 10.1.1.0/24 respectively
- Click Default to edit the subnet, give a name for the subnet and change the starting address to 10.1.0.0 and leave the other settings as default and click save
- Click Add a subnet to create the second subnet called backend
- Click review + create
- Click create once validation is passed
- Next thing is to create the second virtual network with the same method above in the same resource group. You will see the two virtual network app-vnet and shared-service-net in the same region Eastus
How to establish Region Peering between the two virtual networks
- Click the first virtual network in the resource group
- Click peering
- Select +Add in the peering pane
- Give a name to peering link name under this virtual network and under remote virtual network.
- Select the virtual network, leave other settings as default and click Add
- This will take you to a page where the peering status is showing connected. That means you have successfully peered the two virtual networks.
Top comments (0)