Create Azure VPN Gateway
This article guides you through the steps to create a VPN gateway in Azure using the Azure portal. Azure VPN Gateway allows you to send encrypted traffic between your on-premises networks and your Azure virtual networks through the public Internet.
Prerequisites
- An Azure subscription.
- A virtual network (VNet) configured in your Azure subscription. The VNet must have at least one subnet that is NOT the GatewaySubnet.
- A dedicated subnet named GatewaySubnet for the VPN gateway. This subnet must be named exactly 'GatewaySubnet' and should not contain any other resources.
Steps to Create a VPN Gateway
1. Sign in to the Azure portal. 2. In the search bar at the top, type "Virtual network gateways" and select it from the search results.
1. On the "Virtual network gateways" page, click the + Create button.
In the "Create a virtual network gateway" page, configure the following settings:
- Subscription: Select your Azure subscription.
- Resource group: Select an existing resource group or create a new one.
- Name: Enter a unique name for your VPN gateway (e.g., `MyVpnGateway`).
- Region: Select the same region as your virtual network.
- Gateway type: Select VPN.
- VPN type: Select the VPN type that matches your scenario. For most scenarios, Route-based is recommended.
- SKU: Choose a SKU based on your performance and feature requirements. Higher SKUs offer better performance and more concurrent connections. Common options include VpnGw1, VpnGw2, etc.
- Generation: Choose the generation for your gateway. Generation1 is the legacy option, while Generation2 offers improved performance.
- Virtual network: Select the virtual network you want to connect to the VPN gateway. The portal will automatically detect the GatewaySubnet if it exists.
GatewaySubnet in your virtual network before proceeding.
1. Under the Public IP address section, select Create new. 2. Provide a name for the public IP address (e.g., `MyVpnGateway-PublicIP`). 3. For Assignment, choose Static. This ensures the IP address doesn't change.
1. Click the Review + create button to validate your configuration. 2. After the validation passes, review the settings and click Create.
The deployment of the VPN gateway can take some time, typically between 30 to 45 minutes. You can monitor the deployment progress in the Azure portal.
Next Steps
Once your VPN gateway is deployed, you can proceed to: