DEV Community

Cover image for Easiest way to create Regional Virtual Network Peering.
Olalekan Oladiran
Olalekan Oladiran

Posted on • Updated on

Easiest way to create Regional Virtual Network Peering.

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 Image description
  • Search for virtual network in the Market place Image description
  • Fill in the project details which comprises subscription and resource group Image description
  • Then fill the instance details which comprises virtual network name and region. Image description
  • Change the tab from Basics to Ip addresses Image description
  • Edit the Ipv4 address space to 10.1.0.0 Image description
  • 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 Image description
  • Click Add a subnet to create the second subnet called backend Image description
  • Click review + create Image description
  • Click create once validation is passed Image description
  • Next thing is to create the second virtual network with the same method above in the same resource group. Image description 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 Image description
  • Click peering Image description
  • Select +Add in the peering pane Image description
  • Give a name to peering link name under this virtual network and under remote virtual network. Image description
  • Select the virtual network, leave other settings as default and click Add Image description
  • This will take you to a page where the peering status is showing connected. That means you have successfully peered the two virtual networks. Image description

Top comments (0)