UnrecognizedArgumentError: unrecognized arguments: --auto-upgrade-channel stable
See original GitHub issue
az feedback
auto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug I am following this docs to enable auto-upgrade for AKS cluster https://docs.microsoft.com/en-us/azure/aks/upgrade-cluster#set-auto-upgrade-channel, but I am failed because of “UnrecognizedArgumentError: unrecognized arguments: --auto-upgrade-channel stable” error
To Reproduce Login in with az az account set --subscription SUBSCRIPTION_ID az feature register --namespace Microsoft.ContainerService -n AutoUpgradePreview --subscription SUBSCRIPTION_ID az provider register --namespace Microsoft.ContainerService --subscription SUBSCRIPTION_ID --wait az aks update --resource-group RESOURCE_GROUP --name AKS_NAME --auto-upgrade-channel stable --subscription SUBSCRIPTION_ID
Expected behavior Should have auto-upgrade enabled for the AKS
Environment summary Ubuntu Distributor ID: Ubuntu Description: Ubuntu 18.04.5 LTS Release: 18.04 Codename: bionic Azure Cli { “azure-cli”: “2.18.0”, “azure-cli-core”: “2.18.0”, “azure-cli-telemetry”: “1.0.6”, “extensions”: {} }
Additional context Tried on Windows 10 with Azure Cli but also failed { “azure-cli”: “2.10.0”, “azure-cli-command-modules-nspkg”: “2.0.3”, “azure-cli-core”: “2.10.0”, “azure-cli-nspkg”: “3.0.4”, “azure-cli-telemetry”: “1.0.4”, “extensions”: { “application-insights”: “0.1.9” } }
Issue Analytics
- State:
- Created 3 years ago
- Comments:13
Hi all, I got the solution, try to run
az extension add --name aks-preview
beforeaz aks update --name $AKS_CLUSTER_NAME --resource-group $RESOURCE_GROUP --auto-upgrade-channel stable
@MateusAmin @g3gurung@yonzhan Maybe the Microsoft should address this in the documentation.
a bit off topic, but can you add spot nodes after you enabled
auto-upgrade
?