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