Interview Prep/Azure/Networking Design

You need all outbound traffic from AKS to go through Azure Firewall. How do you do it?

AdvancedScenarioNetworking Design
Answer

Situation read → UDR outbound type with firewall rules for AKS dependencies.

What I'd do →

  1. Create the route table on the AKS subnet: 0.0.0.0/0 → firewall private IP
  2. On the firewall: application rule with FQDN tag AzureKubernetesService, plus rules for your ACR, MCR (mcr.microsoft.com, *.data.mcr.microsoft.com), Ubuntu/Azure Linux update endpoints, monitoring endpoints, and a network rule allowing TCP 443 to the API server (service tag AzureCloud.<region>) plus UDP 123 for NTP
  3. Create the cluster with --outbound-type userDefinedRouting --vnet-subnet-id <subnetId>
  4. For inbound to public Services, add a DNAT rule on the firewall (asymmetric routing otherwise) or use an internal LB behind App Gateway

Why → Central egress control and logging, with a known egress IP for partners.

Interview tip → Mention asymmetric routing for inbound public LBs; it's the classic gotcha.

Azure All Azure questions Roadmap: Azure core services

More on Networking Design