Skip to content

Instantly share code, notes, and snippets.

@clarenceb
Last active January 16, 2025 22:46
Show Gist options
  • Save clarenceb/5224364c5500af35f84b5e07f9523794 to your computer and use it in GitHub Desktop.
Save clarenceb/5224364c5500af35f84b5e07f9523794 to your computer and use it in GitHub Desktop.
Update AKS Automatic <-> AKS Standard
az group create -n test1 -l australiaeast
# Create an AKS Automatic cluster
az aks create -name testcluster1 -g test1 --sku automatic
az aks show -n testcluster1 -g test1 | jq '.sku
#{
# "name": "Automatic",
# "tier": "Standard"
#}
# Convert to standard AKS cluster
az aks update -n testcluster1 -g test1 --sku base
az aks show -n testcluster1 -g test1 | jq '.sku'
#{
# "name": "Base",
# "tier": "Standard"
#}
kubelogin convert-kubeconfig -l azurecli
kubectl get namespace
# Disable one of the required AKS automatic add-ons
az aks approuting disable -n testcluster1 -g test1
# Try to update back to AKS Automatic SKU (will fail and report a required component is missing)
az aks update -n testcluster1 -g test1 --sku automatic
# (BadRequest) Managed cluster 'Automatic' SKU should enable 'WebAppRouting' feature with recommended values
# Code: BadRequest
# Message: Managed cluster 'Automatic' SKU should enable 'WebAppRouting' feature with recommended values
# Re-enable the required app routing add-on
az aks approuting enable -n testcluster1 -g test1
# Try to update back to AKS Automatic SKU
az aks update -n testcluster1 -g test1 --sku automatic
az aks show -n testcluster1 -g test1 | jq '.sku'
#{
# "name": "Automatic",
# "tier": "Standard"
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment