- Understand the purpose of NAT Gateway and how it provides outbound-only internet connectivity for specific subnets.
- Explain when to choose NAT Gateway instead of assigning public IPs to each VM or using a load balancer for egress.
- Describe how NAT Gateway can be used together with Azure Load Balancer to manage both inbound and outbound traffic flows.
- Configure and associate a NAT Gateway with subnets to enable scalable, managed outbound traffic for your workloads.

Tip: NAT Gateway is optimized for outbound-only scenarios where you want to centralize egress traffic and avoid assigning public IP addresses to every VM. It performs source NAT (SNAT) for connections leaving your virtual network and scales to support high-traffic workloads.
When to use NAT Gateway
Use NAT Gateway when you need:- Centralized, managed outbound connectivity for one or more subnets.
- A simple model to control egress IPs (one or more public IPs assigned to the NAT).
- High SNAT capacity and predictable source IPs for external services.
| Option | Best for | Key benefit |
|---|---|---|
| NAT Gateway | Centralized outbound egress for subnets | Removes the need for public IPs on each VM; scalable SNAT |
| Public IP per VM | Individual servers needing direct inbound access | Direct inbound and outbound traffic per resource |
| Azure Load Balancer (Outbound rules) | Managed inbound and outbound flows at scale | Combines inbound load balancing with controlled egress (use with NAT for advanced scenarios) |
Quick design notes
- NAT Gateway is outbound-only by design. It does not provide inbound connectivity to your VMs. For inbound traffic, pair NAT Gateway with a Load Balancer or assign public IPs where required.
- You can attach a NAT Gateway to one or multiple subnets within a virtual network.
- A NAT Gateway can reference one or more public IP addresses (or prefix) to present stable egress IPs to external services.
Warning: NAT Gateway does not replace a Load Balancer for inbound traffic. If your application requires incoming connections or TLS termination, use Azure Load Balancer, Application Gateway, or public IP assignments alongside or instead of NAT Gateway. Also review NAT Gateway pricing and regional availability before implementation.
Links and references
- Official Azure NAT Gateway documentation: https://learn.microsoft.com/azure/virtual-network/nat-gateway
- Azure Load Balancer documentation: https://learn.microsoft.com/azure/load-balancer/