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 →
- Create the route table on the AKS subnet:
0.0.0.0/0→ firewall private IP - 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 tagAzureCloud.<region>) plus UDP 123 for NTP - Create the cluster with
--outbound-type userDefinedRouting --vnet-subnet-id <subnetId> - 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.
More on Networking Design
Design the network for a new three-tier app in Central India that must be private except for the web front end.IntermediateSpoke A can't talk to spoke B, both peered to the hub. What design change makes it work?BeginnerWorkloads must reach Azure SQL privately, including from on-prem over ExpressRoute. How do you set it up?AdvancedA partner needs to whitelist a single egress IP from your App Service and AKS workloads. How?IntermediateYou're asked to expose an internal API to a customer's Azure tenant without VNet peering. How?AdvancedUsers worldwide hit your app hosted in Central India and complain about latency. What do you put in front?Beginner