Subscribe Now

* You will receive the latest news and updates on the Canadian IT marketplace.

Trending News

Blog Post

How to: Setup Azure Virtual Network Peering

How to: Setup Azure Virtual Network Peering 

VNet peering is a way to connect two virtual networks in the same region (that is key) through the Azure backbone network. Peered VNets appear as one for all connectivity purposes but virtual machines in these virtual networks can communicate with each other directly by using private IP addresses and the traffic between peered VNets is routed through the Azure infrastructure.

Here are some of the benefits of using VNet peering:

  • A low-latency, high-bandwidth connection between resources in different virtual networks.
  • The ability to use resources such as network appliances and VPN gateways as transit points in a peered VNet.
  • The ability to connect a virtual network that uses the Azure Resource Manager model to a virtual network that uses the classic deployment model and enable full connectivity between resources in these virtual networks.

Before we start please ensure that you comply the following requirements:

  • Your VNets HAVE to be in the same region
  • The IP addresses in your VNets must not overlap
  • Keep in mind that these are NOT transitive routes

Step 1: Register the Vnet Peering provider

First of all we need to login to our Azure Subscription

#Connect to your account

VNet Peering is in public preview, to be able to use it you must register using the following.

#Register Microsoft.Network provider
Register-AzureRmProviderFeature -FeatureName AllowVnetPeering -ProviderNamespace Microsoft.Network
Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Network

Step 2: Peer the Vnets

Now that the provider is registered we can peer our networks.  

For the rest of the steps, please go to CANITPRO.


Related posts