Connecting Azure virtual machines in different regions

Posted: June 24, 2018 in Azure

In this example we’ll connect virtual networks located in different Azure regions.This connections is called VNet to VNet.VNet-to-VNet connectivity utilizes the Azure virtual gateways to connect two or more virtual networks together.

0.PNG

 

Creating Gateway subnet-West Europe

Before deploying Virtual Network Gateway we need first to deploy gateway subnet

In subnet properties click + Gateway subnet

1.png

2

Creating Virtual network gateway

In Azure portal click new resource-Virtual network gateaway

 

3.png

Gateway type:VPN

VPN Type:route-based

 

4.PNG

 

Creating virtual network in North Europe

 

5.PNG

Creating Gateway subnet

 

6.png

Defining subnet

7.PNG

Creating Virtual Gateway

8.png

 

9.PNG

In similar way Virtual Network gateway is created in west europe (gateway subnet-10.0.2.0/24)

 

Creating virtual machine in North Europe region

VM is created in North Europe and assigned to vnet-northeurope network

 

0.PNG

Creating VM in West Europe

similar for Virtual machine in West Europe

0.PNG

Creating VNet peering

in NorthEurope Virtual network gateway click Connections-Add

 

11.PNG

 

Specify shared key and opposite network gateway-Virtual network gateway from west-europe (as second gateway)

 

12.PNG

 

Create VNet peering from opposite side-from west europe virtual gateway click-connections-add connection-for second virtual gateway specify north europe virtual gateway-same shared key

 

13.PNG

On both sides, on Virtual network gateway-under connections,connection state should be connected

 

14.PNG

 

14.PNG

Connection from north europe VM to VM in west europe using private IP and vice-versa

 

 

15.PNG

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s