Interview Prep/Azure/Network Connectivity Errors

Outbound calls from AKS intermittently fail with timeouts under load. Metrics show SNAT port usage at 100%.

AdvancedTroubleshootingNetwork Connectivity Errors
Answer

Likely causes → SNAT port exhaustion on the Standard LB outbound rule (default allocation per node is limited), especially with high connection churn to few destinations.

Diagnose → Load balancer metrics "SNAT Connection Count" with failed state, "Used SNAT Ports"; AKS diagnostics SNAT detector.

Fix →

  1. Switch to NAT Gateway outbound (az aks update --outbound-type managedNATGateway where supported)
  2. Or increase outbound IPs/ports: az aks update --load-balancer-managed-outbound-ip-count 4 --load-balancer-outbound-ports 4000
  3. Fix connection reuse in apps

Prevent → NAT Gateway by default for egress-heavy clusters.

Azure All Azure questions Roadmap: Azure core services

More on Network Connectivity Errors