Solution to Azure Kubernetes Service version not supported exception - Version x.x.x is not supported in this region.
1 min read
I got this error while deploying a new Azure Kubernetes Cluster.
{ "error":{ "code":"InvalidTemplateDeployment", "message":"The template deployment 'memealyzerdev3' is not valid according to the validation procedure. The tracking id is 'f9b96b8f-de17-4c81-be8f-e7e0d8253e29'. See inner errors for details.", "details":[{ "code":"AgentPoolK8sVersionNotSupported", "message":"Provisioning of resource(s) for container service memealyzerdev3aks in resource group memealyzerdev3rg failed. Message: {\n \"code\": \"AgentPoolK8sVersionNotSupported\",\n \"message\": \"Version 1.19.3 is not supported in this region. Please use [az aks get-versions] command to get the supported version list in this region. For more information, please check https://aka.ms/supported-version-list\"\n }. Details: " }] }}
```text
The error message recommends using `az aks get-versions`, but that just dumps a bunch of JSON without much direction.
Here’s the Azure CLI command I used to get the version.
```bash
az aks get-versions --location westus2 --query "orchestrators" -o table
```text
This tells the Azure CLI to only output the orchestrators array in table format.
```bash
OrchestratorType OrchestratorVersion Default IsPreview
- ----------------- --------------------- --------- -----------
Kubernetes 1.17.13Kubernetes 1.17.16Kubernetes 1.18.10Kubernetes 1.18.14 TrueKubernetes 1.19.6Kubernetes 1.19.7Kubernetes 1.20.2 TrueFrom there you can decide which version you want to use and if you want to use the IsPreview version.
Jon
Share:
Share on LinkedIn
Quick Share: Your custom post text has been copied to your clipboard! Click the button below to open LinkedIn's share dialog, then paste it.
💡 Tip: LinkedIn will open in a new tab. Use Ctrl+V (or Cmd+V on Mac) to paste your text.
Note: LinkedIn will show the article preview. You can add your custom text above it.