Cloud service · Azure · Updated

Azure NAT Gateway - Azure NAT Gateway is a managed network address translation service that provides outbound internet connectivity for resources in Azure virtual network subnets.

In short

Azure NAT Gateway translates outbound connections from private workloads to static public IP addresses, allowing internet access without assigning public IP addresses to individual instances. It operates at subnet scope and supports scalable source NAT, with StandardV2 adding zone redundancy, higher throughput, IPv6 connectivity, and flow logs.

Cloud Services Hub →

9 key features of Azure NAT Gateway

01
Subnet-level outbound connectivity

Associate a gateway with one or more subnets in the same virtual network to provide outbound internet connectivity for their workloads. Individual instances do not need public IP addresses.

02
Predictable public source addresses

Use static public IP addresses or public IP prefixes to establish a known set of outbound source addresses. Provide the complete set to external partners because individual connections can use different addresses from the configured pool.

03
Dynamic SNAT port allocation

The service dynamically allocates SNAT ports across active workloads instead of assigning a fixed port quota to every instance. Monitor connection failures and use connection pooling because gateway and destination-specific connection limits still apply.

04
StandardV2 zone redundancy

StandardV2 spans availability zones by default in supported regions, maintaining outbound connectivity through healthy zones during a single-zone failure. Regional outages still require a separate regional deployment.

05
SKU-specific throughput

Standard supports up to 50 Gbps, while StandardV2 supports up to 100 Gbps and 10 million packets per second. StandardV2 also has per-connection limits of 1 Gbps and 100,000 packets per second.

06
IPv4 and IPv6 egress

StandardV2 supports up to 16 IPv4 and 16 IPv6 public IP addresses simultaneously. Standard supports up to 16 IPv4 public IP addresses; public IP resources must match the gateway SKU.

07
NAT64 translation

StandardV2 translates outbound IPv6 traffic addressed to 64:ff9b::/96 into IPv4 traffic for IPv4-only destinations. Deploy a third-party DNS64 resolver to synthesize destination addresses for this pattern.

08
Outbound-only connection initiation

The gateway accepts return packets for outbound-initiated flows but does not expose an inbound listener or configurable inbound port forwarding. Combine it with network security groups or a firewall for outbound access policy.

09
Operational visibility

Monitor gateway metrics through Azure Monitor and enable StandardV2 flow logs for traffic-level investigation. StandardV2 also supports outbound IPv4 and IPv6 ICMP Echo requests and replies for reachability testing.

Where Azure NAT Gateway is used

  1. 01
    Partner API allowlisting

    Give application servers a controlled set of public source addresses for calling payment processors, SaaS APIs, or partner endpoints. Register every configured gateway address with the destination's allowlist.

  2. 02
    Private compute with internet dependencies

    Allow virtual machines and scale sets without instance-level public IP addresses to retrieve operating system updates, packages, and other public dependencies. Use network security controls separately to restrict permitted destinations.

  3. 03
    Kubernetes cluster egress

    Provide AKS workloads with predictable outbound addresses and dynamically shared SNAT capacity. Select managed or user-assigned NAT Gateway configurations according to virtual network ownership and cluster requirements.

  4. 04
    Web application outbound address control

    Route App Service outbound traffic through virtual network integration and a NAT-enabled subnet to establish predictable internet-facing source addresses. Enable routing of internet-bound application traffic through the integration.

  5. 05
    Centralized inspected internet access

    Route spoke workloads through Azure Firewall in a hub and associate a NAT gateway with the firewall subnet. The firewall enforces policy while NAT Gateway supplies the final public source addresses and additional SNAT capacity.

  6. 06
    IPv6 access to IPv4-only services

    Use StandardV2 NAT64 with a DNS64 resolver when IPv6 workloads must access public IPv4-only APIs. Validate DNS synthesis and application behavior before migrating workloads to this configuration.

How Azure NAT Gateway is priced

Gateway resource hours

A provisioned NAT gateway incurs an hourly resource charge even when it carries no traffic. Standard and StandardV2 have the same published pricing structure; confirm applicable regional and agreement-specific rates.

Data processing

Usage charges apply per GB processed through the gateway, including outbound traffic and its return traffic. Estimate both request and response volumes rather than considering only uploaded data.

Associated resource and network charges

Budget separately for public IP resources, applicable network data transfer, and optional monitoring or log ingestion and retention. Integrated services such as Azure Firewall also retain their own charges.

Services Azure NAT Gateway works with

A common architecture places private virtual machines or application workers in subnets associated with a NAT gateway. The gateway supplies stable public source addresses for public APIs and software repositories, while network security groups control allowed traffic. Standard internal load balancers can serve private application endpoints independently of this outbound path. Azure Monitor provides gateway metrics, and StandardV2 flow logs add traffic-level visibility.

Managed application platforms require their own networking configuration. AKS supports managed NAT gateways and user-assigned gateways for platform-owned networks. App Service uses regional virtual network integration, with internet-bound application traffic routed into the integration subnet to reach its associated gateway. In both cases, verify the actual source addresses observed by an external endpoint before updating partner allowlists.

For centralized inspection, spoke subnets route internet traffic to Azure Firewall in a hub. A NAT gateway associated with the firewall subnet then supplies the final outbound public addresses. This differs from attaching a gateway directly to each spoke: virtual network peering alone does not extend subnet associations across networks. Keep routing, firewall policy, gateway capacity, and regional recovery addresses aligned with the chosen topology.

Azure Virtual Network

Associate a NAT gateway with subnets in a single virtual network to provide a shared outbound translation service. For example, application and worker subnets can use the same public address pool while retaining separate network security groups. A user-defined route to a firewall or virtual network gateway overrides the direct internet path.

Azure Kubernetes Service (AKS)

AKS supports managed and user-assigned NAT Gateway outbound configurations. For example, attach a user-assigned gateway to the cluster subnet when platform engineers must own the outbound public addresses independently of the cluster. Managed StandardV2 NAT Gateway is generally available and is the default managed NAT Gateway SKU for new clusters using managedNATGateway in supported regions.

App Service

App Service can use NAT Gateway through regional virtual network integration. For example, integrate a web application with a NAT-enabled subnet and enable routing of internet-bound application traffic through that integration so partner API calls use the gateway's public addresses. Verify that the selected hosting configuration supports the required networking features.

Azure Firewall

Associate a NAT gateway with AzureFirewallSubnet to combine firewall policy enforcement with NAT Gateway outbound translation. For example, spoke application subnets can send their default route to a hub firewall, which forwards approved internet traffic through the NAT gateway. Merely peering the spoke with the hub does not make the hub gateway available directly to spoke subnets.

Azure Load Balancer

NAT Gateway can provide outbound connectivity for virtual machines behind a Standard internal load balancer. For example, private application servers can receive internal load-balanced requests while downloading updates through a NAT gateway attached to their backend subnet. Plan changes carefully when replacing existing outbound rules, particularly when introducing StandardV2.

Azure Monitor

Use Azure Monitor metrics to observe gateway traffic, connections, and dropped packets, and configure alerts for abnormal behavior. For example, correlate application connection failures with gateway connection and packet-drop metrics before changing public IP capacity. StandardV2 flow logs provide additional traffic details for investigation.

API Management

Azure NAT Gateway can provide a fixed public egress IP for a supported API Management instance deployed into a virtual network. A public backend can allowlist that IP for requests from the API gateway.

Azure App Testing

Azure NAT Gateway can provide outbound internet access for Azure Load Testing engines injected into a virtual network. Associate it with the test subnet when the test is configured not to deploy a public IP address and load balancer.

Azure Application Gateway

Azure NAT Gateway can provide internet egress for a private Application Gateway v2 deployment that uses network isolation. The NAT gateway attaches to the Application Gateway subnet and supplies an outbound public IP without adding a public frontend listener.

Azure Blob Storage

Azure NAT Gateway platform metrics that support diagnostic export can be archived in an Azure storage account. The resulting blobs retain gateway telemetry, such as packet counts, for later analysis.

Alternatives to Azure NAT Gateway in other clouds

AWS

Amazon VPCAmazon VPC

Amazon VPC’s NAT Gateway and Azure NAT Gateway let workloads in private subnets initiate internet connections without accepting unsolicited inbound connections. Both charge for gateway time and data processed, but AWS bills its regional NAT Gateway hourly per configured Availability Zone, while Azure bills StandardV2 hourly per gateway.

Compare fact by fact
Azure NAT GatewayAmazon VPC
Multi-zone NAT hourly billingPer StandardV2 gatewayPer configured Availability Zone
Compared Nov 2026

What is Azure NAT Gateway

2 min read

Azure NAT Gateway provides explicit outbound internet connectivity for workloads in Azure virtual networks. It applies source network address translation, or SNAT, so that private instances connect to external endpoints using the gateway's static public IP addresses. Return traffic is accepted for outbound-initiated flows, but external clients cannot initiate unsolicited inbound connections through the gateway. It is not an inbound load balancer, a VPN gateway, or a firewall that inspects application traffic.

To deploy the service, create a NAT gateway, associate compatible public IP addresses or public IP prefixes, and attach it to the required subnets. Multiple subnets in one virtual network can share a gateway, but each subnet can have only one NAT gateway. A gateway cannot attach directly to subnets across multiple virtual networks. Instances do not need individual public IP addresses, and the normal internet-bound path does not require an additional user-defined route.

Routing still determines whether traffic reaches that internet-bound path. A user-defined default route pointing to a virtual appliance or virtual network gateway overrides direct NAT Gateway connectivity. Attaching a NAT gateway to a workload subnet therefore does not bypass forced tunneling through a firewall or an on-premises network. Network security groups and other controls continue to govern permitted traffic. Use a firewall when outbound access requires destination filtering or application-layer inspection.

The service offers Standard and StandardV2 SKUs. Standard supports IPv4 and up to 50 Gbps of throughput. StandardV2 supports up to 100 Gbps and 10 million packets per second, is zone redundant by default in availability-zone-enabled regions, and supports both IPv4 and IPv6. StandardV2 requires StandardV2 public IP addresses or prefixes; Standard public IP resources are not compatible. Replacing Standard with StandardV2 requires deploying a new gateway rather than performing an in-place SKU upgrade.

Standard supports up to 16 IPv4 public IP addresses, while StandardV2 supports up to 16 IPv4 and 16 IPv6 public IP addresses simultaneously. Dynamic SNAT port allocation shares available capacity across workloads rather than reserving a fixed allocation for each instance. Capacity remains finite: monitor connection volume and failures, reuse application connections, and add public IP capacity when appropriate. Published gateway throughput limits do not increase the bandwidth limits of the underlying compute instances.

StandardV2 also supports outbound ICMP Echo traffic and NAT64. NAT64 allows IPv6 workloads to reach IPv4-only destinations using the well-known prefix 64:ff9b::/96 and requires a third-party DNS64 solution to synthesize the necessary DNS responses. For operations, monitor gateway metrics and use StandardV2 flow logs where detailed traffic visibility is required. Plan SKU migrations as connectivity changes that can interrupt existing sessions. For regional recovery, deploy independent gateways in each application region and include all required regional public IP addresses in destination allowlists.

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.