question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

2reactions
actinicommented, Feb 5, 2021

Hi all, I got the solution, try to run az extension add --name aks-preview before az 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.

0reactions
rogelioamancisidorcommented, Mar 3, 2022

a bit off topic, but can you add spot nodes after you enabled auto-upgrade?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure CLI not recognizing arguments - Stack Overflow
Edit: I changed the arguments to their aliases of -c and -n, and now I get the error on the account-name argument. ERROR:...
Read more >
Release notes & updates – Azure CLI - Microsoft Learn
Learn about the latest Azure Command-Line Interface (CLI) release notes and updates for both the current and beta versions of the CLI.
Read more >
"unrecognized arguments" when trying to pass in a string to ...
Have an interesting problem which seems like a bug. When running the following privisioner AZ CLI cmdlet, it bombs while trying to pass...
Read more >
Stable diffusion error - unrecognized arguments! help! - Reddit
I'm running Stable Diffusion on an i9 mac and when I submit a prompt i get a 'text2img.py: error, unrecognized arguments: "prompt".
Read more >
Installing with CLI not working - Docker for Azure
az: error: unrecognized arguments: --deployment-name docker.template --template-file https://download.docker.com/azure/stable/Docker.tmpl
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found