NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
Use Azure monitoring on the NAT gateway and its virtual network instead of the NVA to see outbound traffic.
For a Standard NAT Gateway:
- Enable Virtual network (VNet) flow logs on the subnet’s virtual network via Azure Network Watcher.
- Send the logs to a Log Analytics workspace.
- Use Log Analytics queries to inspect outbound flows (source private IP/port, destination IP/port, direction, bytes/packets, connection state).
- Note: VNet flow logs show the VM private IPs, not which NAT gateway public IP was used.
For a StandardV2 NAT Gateway (recommended for deeper visibility):
- On the NAT gateway resource, configure Diagnostic settings and enable the
NatGatewayFlowLogsV1resource log category. - Send these logs to a Log Analytics workspace, storage account, or Event Hub.
- Use the NAT gateway flow logs to see IP-level traffic flowing through the NAT gateway (who is talking to what on the internet, and how much).
Additional monitoring:
- Use NAT gateway metrics (Bytes, Packets, Dropped Packets, SNAT Connection Count) in Azure Monitor to see volume and health of outbound traffic.
- Use Bytes/Packets metrics filtered by Direction=Out to understand outbound load and verify that traffic is indeed going through the NAT gateway.
Because internet-bound traffic is no longer traversing the NVA, all visibility must come from:
- VNet flow logs (per-subnet/VM view), and/or
- StandardV2 NAT gateway flow logs (per-NAT gateway view), plus
- NAT gateway metrics for volume and drops.
References: