Azure AKS Deep Dive (Azure CNI, Entra ID Workload Identity, KEDA Add-on)
Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on.
In plain words
AKS is the Azure-hosted control desk that can issue an Entra federation card to a Pod and route VNet addresses to it. The simple Kubernetes rule is: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
Think of it like…
AKS is the Azure-hosted control desk that can issue an Entra federation card to a Pod and route VNet addresses to it.
Where you’ve seen it
During a controlled maintenance window, the platform operator runs az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity. Expected evidence: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations. If the run instead shows this symptom, stop and restore the last known state: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
Words you’ll hear
- Azure CNI
- For this lesson, Azure CNI is the controlling idea: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
- Entra ID
- Entra ID is the checkpoint; run
az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identityand inspect the owner chain. The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking. - KEDA Add-on
- KEDA Add-on is the outcome to preserve; the cost is explicit: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.
- Verification evidence
- The evidence command is
az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity. It connects the declaration to this behavior: Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on.
Visual diagram
Theory & deep dive
How Azure CNI reaches the intended state
Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on. AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
The concrete checkpoint is az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity; compare the Azure CNI owner, Entra ID state, and KEDA Add-on outcome instead of treating YAML acceptance as proof.
Run az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity after the change and correlate the result with Events and the owning object. AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
Entra ID: failure boundary and production cost
The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking. The prerequisite contract is concrete: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility. A safe design limits blast radius, records the last good configuration, and uses az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity as a deterministic rollback checkpoint.
Capture the current state with az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity, then correct the controlling manifest rather than patching a child object; the relevant divergence signal is specific: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
How it works, step by step
Step 1 of 41. Plan the lifecycle boundary
Inventory versions, capacity, state, backups, and ownership in a reversible plan: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
- Goal
- Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on.
- Owner
- Azure CNI
When to use it & trade-offs
What it is
Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on. AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
Why it matters: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking. The invariant at risk is specific: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations. The quickest fact check before changing the design is az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity.
When to reach for it
- Use Azure CNI to enforce this invariant: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
- Use Entra ID evidence from
az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identityin reviews and incident timelines. Run AKS with Azure CNI, Entra workload identity, and the KEDA add-on. - Choose the managed cloud or platform service route only when this cost is justified by governance or scale: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.
When to avoid or be careful
- Avoid assuming Azure CNI is complete after YAML submission; the required behavior is concrete: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
- Avoid treating the next symptom as random; check the owner and state with
az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identityfirst: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking. - Avoid adopting a heavier platform wrapper before measuring its cost: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.
Native, manual, and managed paths for Azure CNI
az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity.Strengths: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
Watch out: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility. Recovery must also recognize this signal: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity; the expected invariant is: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.Strengths: az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity gives immediate feedback without first building a platform layer.
Watch out: A manual change can hide drift, and unlike Azure CNI, it does not make this symptom self-documenting: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity.Strengths: Platform controls can wrap this exact behavior in policy or dashboards: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
Watch out: The added platform ownership buys value at this cost: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.
Interview signals & numbers to know
When this topic comes up
- Interview anchor: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
- Trace Azure CNI to KEDA Add-on through Entra ID; the invariant is: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
- Recognize the symptom: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
- Justify the cost: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.
- Verify with az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity instead of only inspecting YAML.
Benchmarks & rules of thumb
- 2
- Azure identity sides: Kubernetes ServiceAccount and Entra application
- 1
- KEDA capability can be managed as an add-on
- 3
- capacity checks: subnet, egress, and managed node quota
Common mistakes & follow-ups
Common interview mistakes
- Debugging only the child object misses the Azure CNI owner contract: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations.
- Ignoring this telltale condition leads to unrelated changes: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking.
- Repeating
az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identitywithout an owner for remediation wastes retry cost. Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.
Likely interviewer follow-ups
- How would API output and runtime evidence prove this behavior: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations?
- Which owner object, logs, and Events would you inspect for this symptom-The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking-?
- At what threshold would this cost become unacceptable: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility?
az aks get-credentials -g platform -n prod; az aks show -g platform -n prod --query networkProfile; kubectl get azure.workload.identity, name the failure, then justify the cost. Invariant: AKS can use Azure CNI Overlay for Pod IP planning, Entra Workload ID for federated Pod credentials, managed KEDA, and Azure Load Balancer or Application Gateway integrations. Failure: The federated credential subject must match cluster issuer, namespace, and ServiceAccount, while Azure CNI capacity, private endpoints, and node subnet limits can still block networking. Cost: Managed AKS add-ons simplify components, but identity propagation, region quotas, egress architecture, and Azure API permissions remain shared responsibility.Knowledge check
Put it into practice
Practice related interview Q&A
Apply Azure AKS Deep Dive (Azure CNI, Entra ID Workload Identity, KEDA Add-on) with generative AI interview Q&A and hands-on practice.