Which resources are required before you can deploy a VPN gateway between Azure and on

Last Updated on December 11, 2016 by

When you are in hybrid cloud setup with azure, using site-to-site VPN gateway you can have better continuity for your workloads. in this post, I am going to demonstrate how to set up site-to-site VPN Gateway.

Requirements 

Before start make sure you have following in place. 

1)VPN device – you need to have VPN device in on-premises to create the VPN connection with azure. the supported list of devices can found on here. Also, you need to have the relevant knowledge to configure it on your device. I am not going to cover it in details here as settings are different based on the vendor. 

2)Static Public IP address – your VPN device should have external public IP address and it shouldn’t be NAT. 

3)Valid Azure Subscription – Of because you need active Azure subscription. It can be paid or free trial. 

Create Virtual Network 

If you already have virtual network setup in your azure subscription, you will not need to do this step but make sure the settings are correct. 

1)Log in to the azure portal.

2)Go to New > Networking > Virtual Network 

Which resources are required before you can deploy a VPN gateway between Azure and on

3)Then click on create 

Which resources are required before you can deploy a VPN gateway between Azure and on

4)In next page, it will open up the wizard with the VNet information. In their fill the information to match with your configuration.

Which resources are required before you can deploy a VPN gateway between Azure and on

Name – Name for the VNet

Address Space – IP range for the VNet. If you have multiple Address ranges, it can add later. 

Subnet name – Name for the subnet you like to add 

Subnet Address range – Subnet IP range (it must be within the Address Space listed before)

Resource Group – Can create new group or select existing group

Location – location of the VNet

After that click on create continue.

5)Once VNet created, can modify the address ranges and subnets.

Which resources are required before you can deploy a VPN gateway between Azure and on

Create Gateway Subnet 

Next step is to create gateway subnet for the VNet. It is recommended to use /28 or /27 for gateway subnet. This need to be done before connecting VNet to the gateway. 

1)Log in to the Azure Portal

2)Then go to More Services > Virtual Networks 

Which resources are required before you can deploy a VPN gateway between Azure and on

3)Then click on the VNet, created on previous step and click on subnets. Then click on gateway subnet 

Which resources are required before you can deploy a VPN gateway between Azure and on

4)In the next window define the subnet for the gateway and click OK

Which resources are required before you can deploy a VPN gateway between Azure and on

Which resources are required before you can deploy a VPN gateway between Azure and on

Create Virtual Network Gateway

Next step is to create virtual network gateway. 

1)Log in to azure portal 

2)Go to New > Networking > Virtual Network Gateway 

Which resources are required before you can deploy a VPN gateway between Azure and on

3)In next window fill the relevant information and click on Create

Which resources are required before you can deploy a VPN gateway between Azure and on

Name – Name for the virtual network gateway

Gateway Type – For our VPN it will be VPN 

VPN Type – Type of the VPN and regular VPN will be route-based

SKU – SKU for the VPN type

Virtual Network – in here select the VNet you have created following previous step

Public IP Address – VPN need to have public IP address. Select public IP from here or if you don’t have, once you click on the option it will allow you to add new one. 

Location – make sure you select the correct region to match with VNet region. 

4)It can take up to 45 minutes to complete the task. Once it’s done can see the public IP address details. You need this to configure the VPN device in yours on premises device. 

Which resources are required before you can deploy a VPN gateway between Azure and on

Create Local Network Gateway

The next step is to create local gateway which represent your local network. To create it,

1)Log in to azure portal

2)Go to New > Networking > Local network gateway

Which resources are required before you can deploy a VPN gateway between Azure and on

3)Then it will open new wizard and fill the relevant information. After that click on create to proceed

Which resources are required before you can deploy a VPN gateway between Azure and on

Name – Name for the local gateway 

IP Address – Public IP address to represent your VPN device. It should not behind NAT. 

Address Space – This is yours on premises address ranges. You can add multiple ranges.

Resource Group – you can create new resource group or use the same one you were using. 

Which resources are required before you can deploy a VPN gateway between Azure and on

Create Site-to-Site VPN

Then next step is to create Site-to-Site VPN connection between your VPN device and the virtual network gateway. To create it,

1)Log in to azure portal

2)Go to More Services > Virtual network gateways 

Which resources are required before you can deploy a VPN gateway between Azure and on

3)Then click on the virtual network gateway you created and, under the settings tab, click on connection

Which resources are required before you can deploy a VPN gateway between Azure and on

4)Then click on add

Which resources are required before you can deploy a VPN gateway between Azure and on

5)In the wizard fill the relevant information and click ok

Which resources are required before you can deploy a VPN gateway between Azure and on

Name – Name of the connection 

Connection Type – Type of the VPN. Most of the time its site-to-site

Virtual Network Gateway – you need to select the relevant virtual network gateway

Local Network Gateway – in here need to select the relevant local network gateway for your connection

Shared Key – This is the pre-shared key you going to use for the VPN configuration

6)Once its created it’s all about configuring the VPN in your VPN device. 

7)Once connected you can see the status in same page by clicking on connection

Which resources are required before you can deploy a VPN gateway between Azure and on

Hope this was helpful and if you have any questions feel free to contact me on

Reader Interactions

Which of the following resources are required before you can deploy a VPN gateway between Azure and on

VPN gateway IP address: This is the public IP address of the VPN device for your on-premises network. The VPN device requires an IPv4 public IP address. Specify a valid public IP address for the VPN device to which you want to connect. It must be reachable by Azure.

Which items are required before configuring Azure Site

During configuration of a site-to-site VPN connection, you must specify the IP address range prefixes that Microsoft Azure uses to route to your on-premises environment. In addition, all internal subnets for your on-premises network cannot overlap with any of the virtual network subnets that you are connecting to.

Which network configuration must be in place before configuring an Azure VPN?

When you're creating a virtual network gateway, you must make sure that the gateway type is correct for your configuration. The available values for -GatewayType are: Vpn. ExpressRoute.

What are the main components of an Azure VPN gateway setup?

Components of VPN Gateway in Azure.
VNet: Only one VPN Gateway can be deployed in a Single VNet. ... .
GatewaySubnet: You need a dedicated subnet for VPN Gateway. ... .
Virtual Network Gateway: Create Virtual Network Gateway of VPN type. ... .
Public IP address: Create Dynamic Public IP Address resource..