Pcornel
Browse topics
Options
Recent
Favorites
Cloud · Technical reference

Azure Kubernetes Service (AKS)

Direct answer

AKS is Azure's managed Kubernetes: Microsoft runs the Kubernetes control plane; you run node pools (VM scale sets) and your workloads. Clusters integrate with Azure networking, Entra ID, managed identities, Azure Container Registry and Azure Monitor.

When to use this

Use it to run containerized applications on Kubernetes without operating the control plane, and to find which layer — Azure, node, Kubernetes or workload — is failing.

First 30 seconds

1. Is the Azure resource healthy (provisioning state, version supported)?

2. Are nodes Ready and on the expected version?

3. Is it a pod scheduling, image pull, networking or application problem?

4. Did a recent upgrade or node image change coincide?

Operational verification

Azure control plane (managed) → node pools (VMSS) → kubelet/container runtime → pods and services → ingress/egress networking → application

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
AKS (Standard and Automatic modes). Kubernetes concepts are in the Containers Domain.
Applicability is projected only from persisted Topic profile and Command metadata.
At a glance

Operational reference

Fast context before you go deeper.

PlatformAKS (Standard and Automatic modes). Kubernetes concepts are in the Containers Domain.
Key commandaz aks nodepool list -g $RG --cluster-name $C \
Scope / prerequisiteUse it to run containerized applications on Kubernetes without operating the control plane, and to find which layer — A…
What next?2 suggested next steps
Evidence0
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Read-only Verification Verify boundary
RG=rg-aks; C=aks-prod

# Azure resource view
az aks show -g $RG -n $C --query "{k8s:kubernetesVersion, state:provisioningState, power:powerState.code, tier:sku.tier, plugin:networkProfile.networkPlugin, mode:networkProfile.networkPluginMode, outbound:networkProfile.outboundType}"
az aks nodepool list -g $RG --cluster-name $C \
  --query "[].{pool:name, mode:mode, k8s:orchestratorVersion, count:count, vm:vmSize, state:provisioningState, image:nodeImageVersion}" -o table
az aks get-upgrades -g $RG -n $C -o table

# Kubernetes view (credentials for your Entra identity)
az aks get-credentials -g $RG -n $C
kubectl get nodes -o wide
kubectl get pods -A --field-selector=status.phase!=Running
kubectl get events -A --sort-by=.lastTimestamp | tail -30
Step 2 Common mistakes Narrow the fault
  • Running clusters on Kubernetes versions that fell out of support because nobody owned upgrades.
  • One node pool for everything, so system pods compete with workloads.
  • Sizing flat Azure CNI subnets for today's node count, not for scale-out plus upgrade surge.
  • Using image pull secrets with long-lived credentials instead of attaching ACR with a managed identity.
  • Creating new clusters with kubenet despite its retirement.
Step 3 Troubleshooting Narrow the fault

Pods stuck in ImagePullBackOff from ACR. Check that the kubelet identity has AcrPull on the registry (az aks check-acr -g <rg> -n <cluster> --acr <registry>.azurecr.io) and that egress or private endpoint DNS lets nodes reach the registry.

Upgrade stuck or failed. Common causes: pod disruption budgets that allow zero evictions, insufficient quota for surge nodes, or nodes that cannot drain. Fix the blocker, then rerun the upgrade.

Pods cannot reach on-premises or another VNet. With Overlay, traffic leaves with the node IP — firewall rules must allow the node subnet, not a pod range. Check route tables and NSGs on the node subnet.

kubectl returns Forbidden. Your Entra identity lacks a Kubernetes role binding or the Azure RBAC for Kubernetes role; az aks get-credentials succeeding only proves Azure access.

Out of IP addresses. Flat Azure CNI allocates VNet IPs per pod; plan subnets for max pods × nodes, or use Overlay.

Key points

Two layers of tooling: az aks for the Azure resource (version, node pools, network, identity), kubectl for what runs inside. Upgrades are your responsibility unless an auto-upgrade channel is set. kubenet networking is retired on 31 March 2028; new clusters should use Azure CNI Overlay or flat Azure CNI.

Key checks
  • az aks show — version, provisioning/power state, network plugin, identity.
  • az aks nodepool list — pools, versions, counts.
  • az aks get-upgrades — available versions.
  • kubectl get nodes -o wide / kubectl get pods -A — what Kubernetes sees.
ReferenceWhat it is2 sections · depth on demand

Direct Answer

Azure Kubernetes Service (AKS) is managed Kubernetes. Azure creates and operates the control plane (API server, etcd, scheduler) at no charge in the Free tier; you pay for the node pools — virtual machine scale sets that run kubelet and your pods.

  • Tiers: Free (default, no uptime SLA), Standard (uptime SLA), Premium. AKS Automatic provisions, scales and upgrades nodes for you and uses the Standard tier.
  • Node pools: a system pool hosts cluster components; user pools host workloads, can use different VM sizes or Windows nodes, and can scale or upgrade separately.
  • Upgrades: in AKS Standard, Kubernetes upgrades are manual unless you choose an auto-upgrade channel; node OS images have their own update channel.
ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Networking models

ModelPod IPsNotes
Azure CNI OverlayFrom a private pod CIDR separate from the VNetScales well and saves VNet address space; traffic leaving the cluster is NATed to the node IP
Azure CNI, flat (pod subnet / node subnet)From VNet subnetsPods are directly routable in the VNet; needs much more address space
kubenetPrivate range with route tablesRetired 31 March 2028; migrate to Azure CNI Overlay

With Azure CNI powered by Cilium, Cilium's eBPF data plane replaces kube-proxy for service routing and adds network policy enforcement.

Egress: clusters need outbound access to Azure endpoints (image registries, management). The outbound type (load balancer, NAT gateway, user-defined routing through a firewall) decides the source IP and the path; restricting egress requires allowing the documented FQDNs.

Identity: the cluster uses a managed identity to manage Azure resources (load balancers, disks); the kubelet identity pulls images — attach Azure Container Registry with az aks update --attach-acr so it gets the AcrPull role. Workload identity federates Kubernetes service accounts with Entra ID so pods reach Key Vault or storage without secrets. Entra ID integration with Kubernetes RBAC controls who can run kubectl.

Upgrades and versions: AKS supports a rolling window of Kubernetes minor versions; clusters on unsupported versions lose support. Upgrades surge extra nodes, cordon and drain old ones, then remove them — pod disruption budgets and enough quota decide whether this goes smoothly. Planned maintenance windows control when automatic upgrades run.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
aksazure kubernetes serviceaks node poolazure cni overlayaks upgradekubenet retirementaz aks
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

az aks show: state: Succeeded and power: Running is the healthy Azure view. Failed after an operation means the last change (upgrade, scale) did not complete — the cluster may still serve traffic, but the next operation needs the cause fixed first. plugin: azure with mode: overlay is Azure CNI Overlay; plugin: kubenet is on the retirement path.

Node pool list: pools on different k8s versions than the control plane are normal mid-upgrade; a pool stuck behind for days is not. A count below the autoscaler minimum or a Failed state points at quota, SKU availability or a failed node image update.

kubectl get nodes: NotReady nodes mean kubelet stopped reporting — check the VMSS instance, disk pressure and network to the API server. SchedulingDisabled means the node is cordoned (often an upgrade in progress).

Pods not Running: Pending → no node fits (resources, taints, zone); ImagePullBackOff → registry access or wrong image; CrashLoopBackOff → the application starts and exits.

Design & tradeoffs

Design decisions

Tier. Production clusters that need a financially backed control-plane SLA use Standard (or AKS Automatic); Free is fine for dev/test.

Network model. Azure CNI Overlay is the default choice: it conserves VNet space and scales. Choose flat Azure CNI only when something outside the cluster must reach pod IPs directly.

Upgrade strategy. Use an auto-upgrade channel (for example patch or stable) with a planned maintenance window, or own a documented manual cadence — but do not leave it undefined. Keep pod disruption budgets realistic so drains can proceed.

Isolation. Separate system and user node pools; use zones for node pools in production; restrict egress through a firewall with the required FQDNs allowed.

Confirmation

Confirm action

Continue?