<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Gessyca’s Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/gessyca/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/gessyca/feed.xml</link>
    <description>Microsoft IT - Vendor Infrastructure Services</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:25:26 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>ASM VNet to ARM VNet VPN Conneciton</title>
      <link>https://docs.microsoft.com/archive/blogs/gessyca/asm-vnet-to-arm-vnet-vpn-conneciton</link>
      <pubDate>Mon, 20 Feb 2017 11:21:02 GMT</pubDate>
      <dc:creator><![CDATA[Gessyca]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/gessyca/?p=25</guid>
      <description><![CDATA[Here I will show step-by-step how to make a VPN tunnel to connect two Virtual Networks (VNets) with...]]></description>
      <content:encoded><![CDATA[Here I will show step-by-step how to make a VPN tunnel to connect two Virtual Networks (VNets) with different deployment models: classic deployment (ASM) and Azure Resource Manager (ARM).

<!--more-->

Before we begin we need to install the latest version of Azure PowerShell. Also if you already created the VNets, make sure the IP address range between VNets do not overlap, if they do make the necessary changes.
<h2>Creating the Virtual Networks</h2>
First let's start by creating the classic Virtual Network. Note: I'll use the classic portal to create this VNet, however you can use the New portal.

To create the classic VNet click on the <b>NEW</b> button on the bottom left corner of your Azure portal (Classic portal), click on <b>NETWOKR SERVICES</b>, <b>VIRTUAL NETWORK</b>, and <b>CUSTOM CREATE</b>. The <b>CREATE A VIRTUAL NETWORK</b> windows will open.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/vnet2vnet_001.png"><img width="800" height="365" class="aligncenter wp-image-35" alt="vnet2vnet_001" src="https://msdnshared.blob.core.windows.net/media/2017/02/vnet2vnet_001-1024x468.png" /></a>

On the <b>Virtual Network Details</b> page write the <b>NAME</b> of the Virtual Network (I called <b>VPNMig1</b> but in the post I'll refer to this VNet as <b>classic VNet</b>), the <b>LOCATION</b> (if you have more than one subscription, you need to select the Azure <b>SUBSCRIPTION</b> you want to use). Continue to the next page by clicking on the arrow on the lower left.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/vnet2vnet_002.png"><img width="800" height="508" class="aligncenter wp-image-45" alt="vnet2vnet_002" src="https://msdnshared.blob.core.windows.net/media/2017/02/vnet2vnet_002-1024x650.png" /></a>

On the <b>DNS Server and VPN Connectivity</b> page, I'll do nothing and continue to the next page (you can set a DNS server if you wish).

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_003.png"><img width="800" height="509" class="aligncenter wp-image-55" alt="vnet2vnet_003" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_003-1024x651.png" /></a>

On the <b>Virtual Network Address Spaces</b> page, write the <b>STARTING IP</b> address (I'll use 10.0.0.0 for the classic VNet) and select the <b>CIDR (ADDRESS COUNT)</b> prefix (I selected /16 for the classic VNet). Also modify the CIDR prefix for the Subnet-1 to the prefix you need (I will set it to /24). Click the checkmark to finish.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_004.png"><img width="800" height="508" class="aligncenter wp-image-65" alt="vnet2vnet_004" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_004-1024x651.png" /></a>

With this we created our classic VNet (VPNMig1).

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_005.png"><img width="900" height="230" class="aligncenter wp-image-75" alt="vnet2vnet_005" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_005-1024x261.png" /></a>

Next, we can create our ARM VNet. On the new portal navigate to <b>Virtual Networks</b> (Note: do not confuse it with the classic Virtual Network, the icon is same &lt;···&gt; but the ARM VNet has green dots). Then click the plus symbol (<b>+ Add</b>) at the top of the Virtual Networks panel to add an new VNet.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_006.png"><img width="650" height="275" class="aligncenter wp-image-86" alt="vnet2vnet_006" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_006.png" /></a>

On the <strong>Create virtual network</strong> windows. Write the <b>Name</b> of the VNet (I called it VPNMig2), select the <b>Address space</b> (make sure it does not overlap to the address spaces of the classic VNet; in this case I'll set this VNet to 192.168.10.0/24). Select the <b>Subnet name</b> (I left the default name), the <b>Subnet address range</b> (192.168.10.0/25), select your <b>Subscription</b>, the name for the <b>Resource group</b>, and the <b>Location</b> (I'll set the location to East US). Then click on <b>Create</b>.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_007.png"><img width="450" height="655" class="aligncenter wp-image-96" alt="vnet2vnet_007" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_007-703x1024.png" /></a>

The ARM VNet is created.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_008.png"><img width="900" height="190" class="aligncenter wp-image-105" alt="vnet2vnet_008" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_008-1024x216.png" /></a>
<h2></h2>
<h2>Configure the Classic Virtual Network</h2>
Now that we have the two Virtual Networks created let us begin with the configuration. First we need to create a <strong>local site</strong>. Here I will start with the configuration of the classic VNet (I'll work with the New Portal from here on; if you want to try this steps on the classic portal you can find them <a href="https://gitlearning.wordpress.com/2016/08/28/azure-vnet-to-vnet-connection/">in this blog</a>). So first navigate to the <strong>Virtual network (classic)</strong>.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_009.png"><img width="900" height="251" class="aligncenter wp-image-125" alt="vnet2vnet_009" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_009-1024x285.png" /></a>

Then click on your classic VNet (VPNMig1 in my case) and <b>Overview</b>, and on <strong>VPN connections</strong> click on <b>Gateway</b>.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_010.png"><img width="800" height="351" class="aligncenter wp-image-135" alt="vnet2vnet_010" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_010-1024x450.png" /></a>

On the <b>New VPN Connection</b> page, on <b>Connection type</b> select <b>Site-to-site</b>. Then click on<b> Local site</b>, (this will open <b>Local site</b> page). On the <strong>Local site</strong> page, write the <strong>Name</strong> of the local site, on <b>VPN gateway IP address</b>, write the IP of the <strong>ARM VNet</strong> gateway (as I haven't created the gateway I'll write a temporal IP), and on <b>CLIENT ADDRESS SPACE</b> write the IP of the <strong>ARM VNet</strong> (192.168.10.0/24), and click the <b>OK</b> button on the<b> Local site</b> page.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_011.png"><img width="800" height="622" class="aligncenter wp-image-145" alt="vnet2vnet_011" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_011-1024x796.png" /></a>

Next let us create the gateway for the classic VNet. Back on the <b>New VPN Connection page</b> just check the <b>Create gateway immediately</b> box, a new tab will be added for <b>Optional gateway configuration</b>, click on it.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_012.png"><img width="600" height="569" class="aligncenter wp-image-155" alt="vnet2vnet_012" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_012.png" /></a>

On the <b>Gateway configuration</b> page, click on <b>Subnet</b>. A new <b>Add Subnet</b> windows will be open. There select the <b>Address range</b> for the gateway subnet and click the <b>OK</b> button on the <b>Add Subnet</b> page.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_013.png"><img width="800" height="430" class="aligncenter wp-image-156" alt="vnet2vnet_013" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_013-1024x551.png" /></a>

On the <b>Gateway configuration</b> page, <b>Size</b> refers to the <a href="https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-vpngateways#gateway-skus"><b>gateway SKU</b></a>. The higher the SKU, more CPU and bandwidth will be allocated to the gateway (I'll select <b>Standard</b> SKU). Leave the <b>Routing Type</b> on <b>Dynamic</b> and click on the <b>OK</b> button.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_014.png"><img width="800" height="623" class="aligncenter wp-image-165" alt="vnet2vnet_014" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_014-1024x798.png" /></a>

Finally, On the <strong>New VPN connection</strong> page click the<strong> OK</strong> button. Deployment of the Local site and the gateway will begin. Note that this step can take over 40min to complete.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_015.png"><img width="450" height="644" class="aligncenter wp-image-175" alt="vnet2vnet_015" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_015-715x1024.png" /></a>

If you open the classic portal and navigate to <b>Virtual Networks</b>, you will be able to confirm that the Gateway is being created.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_016.png"><img width="900" height="331" class="aligncenter wp-image-185" alt="vnet2vnet_016" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_016-1024x377.png" /></a>

40 to 45 min later the gateway is finally created. Take note of the gateway IP address as we are going to need it.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_017.png"><img width="900" height="385" class="aligncenter wp-image-195" alt="vnet2vnet_017" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_017-1024x438.png" /></a>

You can also check the status of your gateway connections by clicking on the building with the name of the local site you created (ToARMNet). Notice the local network site you created is listed as <b>Connecting</b>.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_018.png"><img width="900" height="373" class="aligncenter wp-image-205" alt="vnet2vnet_018" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_018-1024x424.png" /></a>

&nbsp;
<h2>Configure the ARM Virtual Network</h2>
The next step is to configure the Resource manager VNet settings. Before creating the gateway we will need to create the <b>gateway subnet</b>. To do this, navigate to Resource Manager <b>Virtual networks</b>. Click on your ARM VNet, then on the setting section click on <b>Subnets</b>. A new page will open. On this new page click on <b>+Gateway subnet</b>.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_019.png"><img width="900" height="302" class="aligncenter wp-image-215" alt="vnet2vnet_019" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_019-1024x344.png" /></a>

The <strong>Add Subnet</strong> page will open, there you can change the IP <b>Address range</b> that is filled automatically with the value you wish. Then click on the <b>OK</b> button.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_020.png"><img width="900" height="366" class="aligncenter wp-image-216" alt="vnet2vnet_020" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_020-1024x416.png" /></a>

The Gateway subnet is created.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_021.png"><img width="900" height="370" class="aligncenter wp-image-225" alt="vnet2vnet_021" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_021-1024x421.png" /></a>

The next step is to create the <strong>ARM Virtual Network gateway</strong>. In the portal on the top left side click the <strong>+</strong> symbol and type <b>Virtual network gateway</b> and click Enter.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_022.png"><img width="754" height="154" class="size-full wp-image-235 aligncenter" alt="vnet2vnet_022" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_022.png" /></a>

On the windows that opened select <b>Virtual network gateway</b>, then click on the <b>Create</b> button on the next page. The <b>Create virtual network gateway</b> window will open

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_023.png"><img width="900" height="361" class="aligncenter wp-image-245" alt="vnet2vnet_023" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_023-1024x410.png" /></a>

On the <b>Create virtual network gateway</b> window, write the <b>Name</b> of your gateway. On <b>Gateway type</b> select <b>VPN</b>, on <b>VPN type</b> select <b>Route-based</b>, select the <b>SKU</b> you wish, and then click on the <b>Virtual network</b> (<b>Choose virtual network</b>) to add this gateway to a virtual network. On the <b>Choose virtual network</b> page select the ARM virtual network we created at the beginning.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_024.png"><img width="800" height="611" class="aligncenter wp-image-255" alt="vnet2vnet_024" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_024-1024x782.png" /></a>

Then click on <b>Public IP address</b> to open the <b>Choose public IP address</b> page, and click <b>+Create New</b> to open the <b>Create public IP address</b> page.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_025.png"><img width="900" height="238" class="aligncenter wp-image-257" alt="vnet2vnet_025" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_025-1024x271.png" /></a>

On the <b>Create public IP address</b> page write the <strong>Name</strong> for your public IP, and click OK.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_026.png"><img width="450" height="744" class="aligncenter wp-image-265" alt="vnet2vnet_026" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_026-620x1024.png" /></a>

Finally, with the new public IP address created select the <b>Subscription</b>, and select the <b>Location</b> (same as the location of the ARM virtual network you created) and click on <b>Create</b>. The deployment of the virtual gateway will begin (this might take up to 45min)

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_027.png"><img width="450" height="616" class="aligncenter wp-image-275" alt="vnet2vnet_027" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_027-748x1024.png" /></a>

After the virtual gateway is created, you can navigate to <strong>Virtual networks</strong>, click on the ARM Vnet (VPNMig2), then <strong>Overview</strong>, on the new page click on the Virtual network gateway we just created.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_028.png"><img width="900" height="328" class="aligncenter wp-image-285" alt="vnet2vnet_028" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_028-1024x373.png" /></a>

Then on Virtual network gateway select overview, there you can see the details of the gateway we just created including the Public IP address. There you can take note of the public IP address.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_029.png"><img width="900" height="221" class="aligncenter wp-image-286" alt="vnet2vnet_029" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_029-1024x251.png" /></a>

Next we need to create the local network gateway. In the portal on the top left side click the <strong>+</strong> and type <b>Local network gateway</b> and click Enter. On the <b>Everything</b> page select <b>Local network gateway</b> and finally on the <b>Local network gateway</b> page click on <b>Create</b> (just as we did for the virtual network gateway).

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_030.png"><img width="800" height="615" class="aligncenter wp-image-295" alt="vnet2vnet_030" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_030-1024x787.png" /></a>

On the <strong>Create local network gateway</strong> windows, write the <b>Name</b> of your local network gateway. Then on <b>IP address</b> write the IP address of the virtual network you want to connect (in our case the <strong>IP of the Classic virtual network gateway</strong>). On the <b>Address space</b> write the address range for the local network (our classic VNet network). Select the <b>Subscription</b> and write a name for the <b>Resource group</b> or select the resource group you want to use and select the <b>Location</b>. Then click on <b>Create</b>.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_031.png"><img width="450" height="625" class="aligncenter wp-image-296" alt="vnet2vnet_031" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_031-737x1024.png" /></a>

&nbsp;
<h2>Modify the Classic Local Site</h2>
Finally before creating the connection we will need to modify our classic VNet Local site with the IP address of the ARM VNet Virtual network gateway. Navigate to <b>virtual network (classic)</b> select the Classic VNet we created and <b>Overview</b>. In the <b>VPN connection</b> section click on the name of the local site (the one with the building).

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_032.png"><img width="900" height="368" class="wp-image-305 aligncenter" alt="vnet2vnet_032" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_032-1024x419.png" /></a>

On the <b>Site-to-Site VPN connection</b>s windows select the name of your Local site, then on the new page click on <strong>Local site</strong>. Finally on the <b>Local site</b> page modify the <b>VPN gateway IP address</b> with the Public IP address of the ARM VNet virtual network gateway, and click on <strong>OK</strong>.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_033.png"><img width="900" height="372" class="aligncenter wp-image-315" alt="vnet2vnet_033" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_033-1024x423.png" /></a>

&nbsp;
<h2>Connecting the Virtual Networks</h2>
First we will need to generate a <b>pre-shared key</b> for our Virtual networks, the easiest way to do this is on the classic portal. Navigate to <b>Virtual Networks</b>, select the classic Virtual Network we created. To create the<b> Pre-shared</b> key open the <b>DASHBOARD</b> and click on <b>MANAGE KEY</b> on the bar at the bottom.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_035.png"><img width="900" height="454" class="aligncenter wp-image-335" alt="vnet2vnet_035" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_035-1024x517.png" /></a>

On the <b>Manage Share Key</b> page copy the key to your notepad and click on the checkmark. There are other method to generate the <a href="https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-multi-site#6-download-keys">pre-shared key</a>.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_036.png"><img width="600" height="423" class="aligncenter wp-image-345" alt="vnet2vnet_036" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_036.png" /></a>

To set the Pre-Shared key to our classic VNet we need to use PowerShell as this steps cannot be done through the portal. So, let us login to the Azure Accounts. Open the PowerShell console with elevated rights to login to your ARM account type:
<pre>Login-AzureRmAccount</pre>
If you have more than one subscription, you should select the subscription you are working with.
<pre>Get-AzureRmSubscription

Select-AzureRmSubscription -SubscriptionName "Name of Your Subscription"
</pre>
<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_034.png"><img width="900" height="559" class="aligncenter wp-image-325" alt="vnet2vnet_034" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_034-1024x636.png" /></a>

Add your Azure Account to use the classic PowerShell cmdlets
<pre>Add-AzureAccount</pre>
Now we can set the pre-shared key for the connection from our classic VNet (VPNMig1) to our ARM VNet. (Note the shared key XXXYYYYZZZZZAAAAA, is the key you copied on your notepad).
<pre>Set-AzureVNetGatewayKey -VNetName "VPNMig1" -LocalNetworkSiteName "44DECC09_ToARMVNet" -SharedKey XXXYYYYZZZZZAAAAA</pre>
<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_037.png"><img width="900" height="188" class="aligncenter wp-image-355" alt="vnet2vnet_037" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_037-1024x214.png" /></a>

To set the pre-shared key for the connection from our ARM VNet (VPNMig1) to our classic VNet we first need to define some variable (to simplify the command). Note that you should change the names you the ones of your ARM Local Network Gateway and ARM Virtual Network Gateway and their corresponding resource groups.
<pre>$vnet01gateway = Get-AzureRMLocalNetworkGateway -Name "ToClassicVNet" -ResourceGroupName "ToClassicVNet"

$vnet02gateway = Get-AzureRMVirtualNetworkGateway -Name "ToClassic" -ResourceGroupName "VPNMig2"
</pre>
Then we can create the connection. Not in the command below -Name "ARM-Classic" will be the name we set for this connection (not a name we created before), so feel free to modify to a name of your liking. The ConnectionType should be IPsec and the SharedKey is the same key we copied on the notepad for or classic VNet
<pre>New-AzureRmVirtualNetworkGatewayConnection -Name "ARM-Classic" -ResourceGroupName "VPNMig2" -Location "East US" -VirtualNetworkGateway1 $vnet02gateway -LocalNetworkGateway2 $vnet01gateway -ConnectionType IPsec -RoutingWeight 10 -SharedKey "XXXYYYYZZZZZAAAAA"
</pre>
<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_038.png"><img width="900" height="464" class="aligncenter wp-image-365" alt="vnet2vnet_038" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_038-1024x528.png" /></a>

&nbsp;
<h2>Verify the connection</h2>
We can verify the connection of the Virtual Networks using the Portal. For the connection from classic to ARM VNet Navigate to <b>Virtual networks (classic)</b>, and in the <b>VPN connections</b> section you will see the gateway is connected.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_040.png"><img width="900" height="372" class="aligncenter wp-image-385" alt="vnet2vnet_040" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_040-1024x423.png" /></a>

From the classic portal you can also see the connection was made.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_039.png"><img width="900" height="309" class="aligncenter wp-image-375" alt="vnet2vnet_039" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_039-1024x352.png" /></a>

For verifying the connection from ARM to classic VNet Navigate to <b>Virtual Network gateways</b>, select the name of the gateway connecting to our classic VNet, then select <b>Connections</b>. On the new page you can verify the status of the connection.

<a href="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_041.png"><img width="900" height="289" class="aligncenter wp-image-395" alt="vnet2vnet_041" src="https://msdnshared.blob.core.windows.net/media/2017/02/Vnet2Vnet_041-1024x329.png" /></a>

You can also do another test by creating VMs on each VNet and trying to ping the VM on the other network.

This will be the end of this article. See you on the next post!]]></content:encoded>
    </item>
    <item>
      <title>Hello world!</title>
      <link>https://docs.microsoft.com/archive/blogs/gessyca/hello-world</link>
      <pubDate>Thu, 09 Feb 2017 02:22:07 GMT</pubDate>
      <dc:creator><![CDATA[Varsha G]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/gessyca/?p=1</guid>
      <description><![CDATA[Welcome to Technet. This is your first post. Edit or delete it, then start blogging!]]></description>
      <content:encoded><![CDATA[Welcome to <a href="https://blogs.technet.microsoft.com/">Technet</a>. This is your first post. Edit or delete it, then start blogging!]]></content:encoded>
    </item>
  </channel>
</rss>