Fix Azure AKS Upgrade Version Errors
When working with Azure AKS, you may encounter a configuration error that prevents your deployment from working. This guide explains the most common mistake with upgrade version and shows the exact fix.
A Common Mistake
Attempting to upgrade a cluster to a Kubernetes version that is not available in the target region or is deprecated, causing upgrade failure.
The incorrect command:
az aks upgrade --name my-aks --resource-group my-rg --kubernetes-version 1.30.0
Error output:
Error: The requested Kubernetes version 1.30.0 is not available in region eastus. Available versions: 1.28.3, 1.28.5, 1.29.0, 1.29.2.
Upgrade fails. The cluster remains on the current version. The --upgrade flag does not show available versions.
The Correct Approach
The right way to configure upgrade version in Azure AKS:
az aks get-versions --location eastus --query "orchestrators[].orchestratorVersion" -o tsv
# Output: 1.28.3 1.28.5 1.29.0 1.29.2
az aks upgrade --name my-aks --resource-group my-rg --kubernetes-version 1.29.2
Successful result:
Cluster upgrading to 1.29.2...
Control plane upgraded. Node pools upgraded one by one.
Upgrade completed successfully.
Kubernetes version: 1.29.2.
Always check available versions before upgrading.
How to Prevent This
Check available versions with az aks get-versions. Upgrade one minor version at a time (e.g., 1.28 -> 1.29). Do not skip minor versions. Upgrade node pools after control plane. The upgrade process cordons and drains nodes. Budget 30-60 minutes for upgrade depending on cluster size.
FAQ
Built by the developers of Doda Browser, DodaZIP, and Durga Antivirus Pro. Secure your cloud with DodaTech.
Built by the developers of DodaTech
Doda Browser, DodaZIP & Durga Antivirus Pro