azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

AKS cluster upgrade with CLI still interactive even when setting --yes option

Open ezYakaEagle442 opened this issue 6 years ago • 6 comments

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

AZ CLI not does implement --yes to bypass confirmation when upgrading AKS Clusters

To Reproduce

az aks upgrade --control-plane-only --name $cluster_name -g $rg_name --kubernetes-version $version --yes

CLI then prompts: Since control-plane-only argument is specified, this will upgrade only the control plane to 1.18.6. Node pool will not change. Continue? (y/N)

Expected behavior

Upgrade should run automatically without any prompt

Environment summary

AKs 1.16.7

Windows 10 CMD : { "azure-cli": "2.7.0", "azure-cli-command-modules-nspkg": "2.0.3", "azure-cli-core": "2.7.0", "azure-cli-nspkg": "3.0.4", "azure-cli-telemetry": "1.0.4", "extensions": { "asc": "0.1.0", "azure-firewall": "0.3.0" } }

Additional context

See https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-upgrade

ezYakaEagle442 avatar Jun 22 '20 09:06 ezYakaEagle442

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

ghost avatar Jun 22 '20 09:06 ghost

route to appropriate team

yungezz avatar Jun 22 '20 09:06 yungezz

The option --yes was introduced in azure cli version 2.8.0 as mentioned in the link . The version which you are using is 2.7.0 which does not contains that option.

atulaggarwal avatar Jul 06 '20 17:07 atulaggarwal

Closing since Atul answered the question!

Jen7714 avatar Jul 06 '20 18:07 Jen7714

The option --yes was introduced in azure cli version 2.8.0 as mentioned in the link . The version which you are using is 2.7.0 which does not contains that option.

Hello,

I got the same error with the 2.9.0 version of azure cli directly in the cloud shell portal, the option is here but it's don't do the job.

BR

NJura-PartnerAuchan avatar Jul 27 '20 13:07 NJura-PartnerAuchan

I run CLI latestv2.14

az version { "azure-cli": "2.14.2", "azure-cli-core": "2.14.2", "azure-cli-telemetry": "1.0.6", "extensions": { "asc": "0.1.0", "azure-firewall": "0.3.0" } }

Please reopen this issue @Jen7714 @atulaggarwal

ezYakaEagle442 avatar Nov 17 '20 12:11 ezYakaEagle442