Cloud service · Azure · Updated

Azure VPN Gateway - Azure VPN Gateway is a managed network gateway that provides encrypted connectivity between Azure virtual networks, remote networks, and individual VPN clients.

In short

Azure VPN Gateway terminates site-to-site, point-to-site, and VNet-to-VNet VPN connections, enabling hybrid networking and remote access without operating VPN appliances in Azure. It supports IPsec/IKE tunnels, dynamic routing with BGP, resilient gateway configurations, and coexistence with ExpressRoute.

Cloud Services Hub →

9 key features of Azure VPN Gateway

01
Site-to-site IPsec/IKE connectivity

Connect branch offices, datacenters, or compatible remote cloud networks to an Azure virtual network through encrypted tunnels. Configure matching IKE/IPsec policies and authentication on Azure and the remote VPN device.

02
Point-to-site remote access

Provide individual computers with VPN access to private Azure addresses using OpenVPN or IKEv2, subject to client and authentication compatibility. Configure a dedicated client address pool and distribute the appropriate VPN profile.

03
BGP dynamic routing

Exchange routes with remote VPN devices and other Azure VPN gateways rather than maintaining every remote prefix manually. BGP supports transit routing, but VPN gateways do not advertise default routes to other BGP peers and do not support BFD for site-to-site connections.

04
Active-active and availability-zone deployments

Use active-active mode to establish tunnels to both gateway instances, and select an appropriate zone-redundant deployment where supported. Remote devices must connect to both public IP addresses to use both active instances.

05
VNet-to-VNet encrypted connections

Connect Azure virtual networks using IPsec/IKE tunnels, including across regions or subscriptions. Unlike VNet peering, this approach uses VPN gateways and consumes their shared bandwidth.

06
Configurable tunnel security

Apply custom IPsec/IKE policies to meet interoperability and cryptographic requirements. Site-to-site authentication supports preshared keys or digital certificates on supported configurations; certificate-based authentication uses an outbound certificate in Azure Key Vault.

07
Dual-stack VPN traffic

Carry IPv4 and IPv6 inner traffic through VPN tunnels in a dual-stack configuration. IPv6 is supported on production gateway SKUs that use Standard public IP addresses; configure the corresponding network prefixes and client or device support.

08
Group-based point-to-site address pools

Assign distinct client IP pools using groups defined by Microsoft Entra ID membership, certificate common name domains, or custom RADIUS attributes. Apply separate network controls to those address ranges when different user populations require different access.

09
NAT for overlapping site networks

Use supported site-to-site NAT configurations to translate address spaces that would otherwise overlap. Confirm SKU, connection, and BGP route-translation requirements before designing around this capability.

Where Azure VPN Gateway is used

  1. 01
    Connect a branch or datacenter to Azure

    Establish a site-to-site tunnel so on-premises systems can reach Azure applications through private addresses. Use BGP when remote prefixes change frequently or multiple redundant paths are required.

  2. 02
    Give engineers remote access to private workloads

    Use point-to-site VPN connections for administrative or development access without assigning public IP addresses to workloads. Configure private DNS resolution and restrict reachable resources with workload-level network controls.

  3. 03
    Provide an ExpressRoute backup path

    Deploy VPN and ExpressRoute gateways in a supported coexistence architecture. Advertise the required prefixes through both paths and test route preference, return traffic, and available VPN capacity during an ExpressRoute failure.

  4. 04
    Connect virtual networks through encrypted tunnels

    Use VNet-to-VNet connectivity when an architecture explicitly requires gateway-terminated IPsec connectivity between Azure networks. Compare its throughput and operating costs with VNet peering before choosing it.

  5. 05
    Support staged migrations and recovery environments

    Connect Azure migration or disaster-recovery networks to an existing datacenter while applications remain distributed across both environments. Account for replication bandwidth, application latency, DNS dependencies, and failover routing.

How Azure VPN Gateway is priced

Provisioned gateway billing

The gateway is billed for the time it remains provisioned, with rates determined by its SKU and deployment region. An idle gateway still incurs charges; disconnecting tunnels does not stop gateway billing.

Data transfer charges

Applicable outbound data transfer is billed separately from the gateway resource. Estimate costs using traffic direction, destination, and connection topology, especially for cross-region VNet-to-VNet traffic; inbound data transfer is generally free.

Associated resource and operational charges

Public IP resources, monitoring ingestion and retention, and integrated services can add separate charges. Active-active mode does not add a separate gateway-mode fee, but its additional public IP is billed accordingly.

Services Azure VPN Gateway works with

A common architecture places VPN Gateway in a hub virtual network and connects application spokes through VNet peering. Gateway transit lets eligible spokes use the hub gateway for on-premises connectivity. Where inspection is required, Azure Firewall and explicit routing provide a separate enforcement layer; both directions of a flow must follow a compatible path.

ExpressRoute coexistence adds a private primary connection with an internet-based VPN backup, or allows branches without ExpressRoute to reach the same Azure environment. Route advertisements, prefix specificity, and failover capacity determine whether this architecture behaves as intended during an outage. Test actual application traffic after withdrawing the primary route.

For remote access, Microsoft Entra ID authenticates point-to-site users, while network controls restrict their access after connection. DNS Private Resolver supports hybrid resolution of private Azure names. Azure Monitor and Log Analytics provide operational visibility into tunnel failures and routing symptoms, while Key Vault supports certificate-based site-to-site authentication. Together, these integrations address connectivity, identity, name resolution, security, and operations without treating the VPN tunnel as a complete access-control solution.

Azure Virtual Network

VPN Gateway deploys into a virtual network's GatewaySubnet and supplies routes to connected remote networks. In a hub-and-spoke architecture, configure gateway transit on the hub peering and use of the remote gateway on eligible spoke peerings. For example, several application spokes can share a hub VPN gateway to reach an on-premises datacenter; peering is not automatically transitive.

Azure ExpressRoute

VPN Gateway can coexist with an ExpressRoute gateway in a supported virtual network configuration. For example, use ExpressRoute as the primary path to a datacenter and a site-to-site VPN as a backup, with BGP advertisements and route preference designed for failover. Verify that the backup internet connection and VPN capacity can carry essential traffic.

Microsoft Entra ID (formerly Azure AD)

Microsoft Entra ID authenticates point-to-site users through OpenVPN using Azure VPN Client. For example, require multifactor authentication through an applicable Conditional Access policy before engineers connect to a private development network. Authentication controls VPN admission; network and application policies must still restrict what connected users can access.

Azure Monitor

Use Azure Monitor metrics and diagnostic settings to observe tunnel health, traffic, and gateway behavior. For example, send gateway and IKE diagnostic logs to a Log Analytics workspace, then correlate tunnel negotiation failures with connection-status alerts. Select log categories and retention deliberately because ingestion and storage can incur charges.

Azure Key Vault

Supported certificate-authenticated site-to-site connections use an outbound authentication certificate stored in Azure Key Vault. Assign a user-assigned managed identity to the gateway and grant the required RBAC permissions for certificate access. For example, manage the gateway's authentication certificate centrally and coordinate certificate renewal with trust configuration on the remote VPN device.

Azure Firewall

Combine VPN connectivity with Azure Firewall when hybrid traffic requires centralized inspection. For example, route branch-to-application traffic through a firewall in the hub using a supported routing design. Configure forward and return paths consistently to avoid asymmetric routing, and do not assume that deploying both services automatically inserts the firewall into the traffic path.

Azure Advisor

Azure VPN Gateway receives resource-specific recommendations in Azure Advisor, such as migrating a gateway that still uses a Basic SKU public IP address to a Standard SKU public IP address.

Azure Application Gateway

Azure VPN Gateway can provide the site-to-site path from Application Gateway to an on-premises backend pool. This lets Application Gateway route HTTPS requests to private servers without giving those servers public IP addresses.

Azure Bastion

Azure VPN Gateway can carry Bastion's IP-based RDP or SSH connections to machines on a remote network. For example, Bastion can open an SSH session to an on-premises server at its private IP address over a site-to-site tunnel.

Azure Blob Storage

Azure VPN Gateway can write packet captures to a Blob Storage container using a shared access signature URL. The capture can then be downloaded for analysis without leaving the capture running on the gateway.

Alternatives to Azure VPN Gateway in other clouds

AWS

AWS Client VPNAWS Client VPN

Both services provide managed, encrypted VPN access for remote users. AWS Client VPN focuses on client access and bills by connection-hours and subnet association-hours, while Azure VPN Gateway also connects sites and virtual networks and bills for the gateway while it is provisioned.

Compare fact by fact
Azure VPN GatewayAWS Client VPN
Base billingProvisioned gateway time, even idleConnection and subnet association hours
Network attachmentDedicated GatewaySubnetVPC subnets or Transit Gateway
Remote-access protocolsOpenVPN or IKEv2OpenVPN-based
Compared Nov 2026
AWS Site-to-Site VPNAWS Site-to-Site VPN

AWS Site-to-Site VPN and Azure VPN Gateway use encrypted IPsec tunnels to connect on-premises networks to cloud virtual networks. AWS bills by the VPN connection-hour and specifies bandwidth per tunnel, while Azure bills for the provisioned gateway and shares its bandwidth across connections.

Compare fact by fact
Azure VPN GatewayAWS Site-to-Site VPN
Base billing unitTime the gateway is provisionedVPN connection-hour
Bandwidth sizingShared gateway bandwidth, by SKUUp to 1.25 Gbps per standard tunnel
Zone redundancyZone-redundant deployment where offeredTwo endpoints across zones by default

What is Azure VPN Gateway

2 min read

Azure VPN Gateway provides managed VPN termination for an Azure virtual network. Site-to-site connections carry encrypted traffic between Azure and an on-premises or other remote network over the public internet. Point-to-site connections let individual computers access private Azure resources through a VPN client. VNet-to-VNet connections provide encrypted connectivity between Azure virtual networks, including networks in different regions or subscriptions, over the Microsoft network.

Deploy the gateway into a dedicated subnet named GatewaySubnet. Reserve sufficient address space for the selected deployment and future changes; a /27 or larger subnet is generally recommended. Do not deploy application resources into this subnet. For a site-to-site connection, create a local network gateway resource describing the remote VPN device's public IP address or FQDN and its network prefixes, then create a connection resource linking it to the Azure gateway. Configure matching authentication and IPsec/IKE settings on the remote device.

Choose a route-based gateway for modern deployments that require capabilities such as BGP, active-active operation, or point-to-site connectivity. BGP exchanges network routes dynamically and helps support redundant connections and changing branch prefixes. Static address prefixes remain suitable for simpler deployments. Plan nonoverlapping address ranges across Azure, remote networks, and VPN client pools. Where supported, gateway NAT rules can translate overlapping site-to-site address spaces, but they require explicit routing and translation design.

Gateway sizing depends on aggregate throughput, tunnel count, concurrent remote users, protocol selection, and feature requirements. All connections on a gateway share its available bandwidth. Published throughput figures are not guaranteed application performance: internet conditions, packet sizes, encryption settings, and the remote VPN device also affect results. Test representative traffic before selecting a production SKU.

For resilience, use an appropriate availability-zone deployment and consider active-active mode. Active-active gateways expose two public IP addresses; configure the remote network to establish tunnels to both instances. Redundant on-premises devices and independent internet connections address failures outside Azure. Validate route convergence and failover behavior rather than assuming that an established secondary tunnel provides adequate recovery.

Point-to-site deployments require compatible client protocols, authentication, address pools, routing, and DNS configuration. Microsoft Entra ID authentication uses OpenVPN with Azure VPN Client. Certificate and RADIUS authentication provide other options depending on protocol and client support. Group-based client address pools can support differentiated network policies, but pool assignment does not itself enforce access restrictions.

Supported production gateway SKUs using Standard public IP addresses can carry IPv4 and IPv6 inner traffic in dual-stack configurations. For operations, collect gateway diagnostics and tunnel metrics, alert on connectivity changes, and test DNS resolution and application reachability in both directions. VPN encryption protects traffic in transit; authorization, traffic inspection, and workload security remain separate design responsibilities.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.