# 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.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/azure-nat-gateway

> 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.

## 9 key features of Azure NAT Gateway

1. **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.
2. **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.
3. **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.
4. **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.
5. **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.
6. **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.
7. **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.
8. **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.
9. **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. **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. **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. **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. **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. **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. **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](https://blowstack.com/tools/cloud-services-hub/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)](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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.
- **[Azure Container Apps](https://blowstack.com/tools/cloud-services-hub/azure-container-apps)**: Azure NAT Gateway can attach to the infrastructure subnet of a workload profiles environment that uses a customer-managed virtual network. Internet-bound requests from container apps then use the NAT gateway's public IP addresses.
- **[Azure Container Instances](https://blowstack.com/tools/cloud-services-hub/azure-container-instances)**: Azure NAT Gateway provides supported outbound internet connectivity for container groups deployed to a virtual network. It associates with the subnet delegated to Azure Container Instances so the groups can reach public endpoints without individual public IP addresses.
- **[Azure Data Factory](https://blowstack.com/tools/cloud-services-hub/azure-data-factory)**: Azure NAT Gateway can provide a static outbound public IP for an Azure-SSIS integration runtime that uses express virtual network injection. Attach it to the runtime's subnet so external data sources can allowlist the gateway's egress address.
- **[Azure Databricks](https://blowstack.com/tools/cloud-services-hub/azure-databricks)**: With secure cluster connectivity, Azure Databricks can create a NAT gateway in the workspace's managed resource group for outbound internet access from its managed virtual network. For a VNet-injected workspace, you can instead associate your own NAT gateway with both workspace subnets.
- **[Azure DevTest Labs](https://blowstack.com/tools/cloud-services-hub/azure-devtest-labs)**: Azure NAT Gateway can provide outbound internet connectivity for lab VMs on a private lab subnet. The VMs share the gateway's egress IP without needing individual public IP addresses.
- **[Azure Functions](https://blowstack.com/tools/cloud-services-hub/azure-functions)**: Azure NAT Gateway gives a function app a predictable public egress IP when the hosting plan supports virtual network integration. Associate it with the integration subnet and configure the app to send internet-bound traffic through that subnet.
- **[Azure Lab Services](https://blowstack.com/tools/cloud-services-hub/azure-lab-services)**: Azure NAT Gateway can provide outbound internet access for lab VMs in a lab plan that uses advanced networking. It attaches to the delegated lab subnet so lab VMs can share a predictable egress IP.
- **[Azure Machine Learning](https://blowstack.com/tools/cloud-services-hub/azure-machine-learning)**: Azure NAT Gateway can provide internet egress for Azure Machine Learning compute instances and clusters deployed without public IP addresses in a customer-managed virtual network. For example, training nodes can reach a public package repository from a fixed address.
- **[Azure Network Watcher](https://blowstack.com/tools/cloud-services-hub/azure-network-watcher)**: Azure Network Watcher Connection Troubleshoot can test outbound TCP connectivity from a VM on a NAT gateway-enabled subnet to a specified public endpoint. This lets you check the destination and port without relying on ICMP, which Standard NAT Gateway does not translate.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Azure Policy can evaluate NAT gateway resources and their subnet associations using resource property aliases. For example, a policy can audit whether designated workload subnets have a NAT gateway attached.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: The Azure portal has a dedicated NAT gateway resource page for creating gateways, assigning public IP addresses or prefixes, linking subnets, and viewing metrics.
- **[Azure Red Hat OpenShift](https://blowstack.com/tools/cloud-services-hub/azure-red-hat-openshift)**: Azure NAT Gateway can provide fixed internet egress for an Azure Red Hat OpenShift cluster that uses customer-managed outbound connectivity. It attaches to the cluster subnets and translates internet-bound traffic from cluster nodes.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Azure Resource Manager provisions NAT gateways as `Microsoft.Network/natGateways` resources. A deployment can create the gateway and its public IP resources and associate the gateway with the required subnets.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Azure RBAC controls who can read, create, update, delete, or associate NAT gateways through Azure networking permissions. A custom role can grant NAT gateway management without granting broad control over other network resources.
- **[Azure Service Health](https://blowstack.com/tools/cloud-services-hub/azure-service-health)**: Azure Resource Health, part of Azure Service Health, shows the health of individual NAT gateway resources. It helps distinguish an Azure platform issue affecting a gateway from a problem with a workload or its network configuration.
- **[Azure Spring Apps](https://blowstack.com/tools/cloud-services-hub/azure-spring-apps)**: Azure NAT Gateway can provide a predictable public egress IP for an Azure Spring Apps instance deployed into a customer virtual network. Associate it with the application subnet so external endpoints can allowlist outbound requests from the apps.
- **[Azure Virtual Desktop](https://blowstack.com/tools/cloud-services-hub/azure-virtual-desktop)**: Azure NAT Gateway provides outbound internet connectivity for session hosts on a private subnet. The hosts can reach the Azure Virtual Desktop service and update endpoints without each VM having its own public IP address.
- **[Azure Virtual Machine Scale Sets](https://blowstack.com/tools/cloud-services-hub/azure-virtual-machine-scale-sets)**: Azure NAT Gateway provides shared outbound internet access for scale set instances when it is attached to their subnet. New instances use the same egress IPs without needing per-instance public IP addresses or load-balancer outbound rules.
- **[Batch](https://blowstack.com/tools/cloud-services-hub/batch)**: Azure NAT Gateway provides explicit outbound connectivity for Batch pool nodes without public IP addresses. Attach it to the pool subnet so nodes using simplified communication can reach required public endpoints.
- **[Event Grid](https://blowstack.com/tools/cloud-services-hub/event-grid)**: Event Grid can deliver Azure Resource Manager events when a NAT gateway is created, updated, or deleted. A subscription can filter for NAT gateway resources to trigger an operations workflow when one changes.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: NAT gateway metrics that support diagnostic export can be streamed to Event Hubs through a diagnostic setting. A downstream consumer can process the gateway's telemetry alongside other network events.
- **[HDInsight](https://blowstack.com/tools/cloud-services-hub/hdinsight)**: Azure NAT Gateway can provide a fixed outbound public IP for HDInsight cluster nodes on a virtual network subnet. Cluster traffic that takes the subnet's internet route uses the gateway's public IP addresses.
- **[Linux Virtual Machines](https://blowstack.com/tools/cloud-services-hub/linux-virtual-machines)**: Azure NAT Gateway lets Linux VMs on an associated subnet initiate internet connections without individual public IP addresses. For example, the VMs can download updates from public package mirrors through the gateway.
- **[Logic Apps](https://blowstack.com/tools/cloud-services-hub/logic-apps)**: Azure NAT Gateway can provide a fixed public egress IP for a Standard logic app that routes outbound traffic through virtual network integration. Calls made by the workflow runtime through the integration subnet can then use an address that a partner API has allowlisted.
- **[Managed DevOps Pools](https://blowstack.com/tools/cloud-services-hub/managed-devops-pools)**: Azure NAT Gateway can provide stable public egress IPs for Managed DevOps Pools agents injected into a customer virtual network. Associate it with the delegated agent subnet so external build dependencies can allowlist the pool's outbound addresses.
- **[Microsoft Dev Box](https://blowstack.com/tools/cloud-services-hub/microsoft-dev-box)**: Azure NAT Gateway can provide outbound internet access for dev boxes provisioned through an Azure network connection into a customer-managed subnet. The dev boxes share the gateway's public egress IP without needing individual public IP addresses.
- **[Virtual Machines](https://blowstack.com/tools/cloud-services-hub/virtual-machines)**: Azure NAT Gateway translates outbound traffic for VMs on an associated subnet to the gateway's public IP addresses. It allows VMs to initiate internet connections without accepting unsolicited inbound connections through the gateway.

## Alternatives to Azure NAT Gateway in other clouds

### AWS

**[Amazon VPC](https://blowstack.com/tools/cloud-services-hub/amazon-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.

| | Azure NAT Gateway | Amazon VPC |
| --- | --- | --- |
| Multi-zone NAT hourly billing | Per StandardV2 gateway | Per configured Availability Zone |

Compared Nov 2026.

## What is Azure NAT Gateway

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.
