The command `az aks upgrade` prompts for user input when you provide `--yes`
See original GitHub issueDescribe the bug
Command Name
az aks upgrade
Errors:
The command is prompting for user input when --yes
is provided.
Since control-plane-only argument is not specified, this will upgrade the control plane AND all nodepools to version 1.14.5. Continue? (y/N):
To Reproduce:
az aks upgrade --resource-group {} --name {} --kubernetes-version {} --no-wait --yes
Expected Behavior
Provided the flag --yes
I expect no user input needed to execute the command.
Since control-plane-only argument is not specified, this will upgrade the control plane AND all nodepools to version 1.14.5. Continue? (y/N):
Environment Summary
Linux-4.14.131-linuxkit-x86_64-with
Python 3.6.4
Shell: bash
azure-cli 2.0.74
Extensions:
aks-preview 0.4.17
Additional Context
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
az aks | Microsoft Learn
Get the available upgrade versions for an agent pool of the managed Kubernetes cluster. az aks nodepool list. List node pools in the...
Read more >NetIQ Identity Manager 4.8.6: Installation and Upgrade Guide
Part I Updating Identity Manager on Standalone Servers ... 16c Open a command prompt and set PGPASSWORD by using the following command:.
Read more >Top 50 Azure Interview Questions and Answers in 2023
Here's a list of top 50 Azure Interview Questions that can be asked to you in your next Azure Interview in 2023.
Read more >Administrator's Guide for ArcSight Platform 20.11 - Micro Focus
You can deploy the ESM Command Center capability to the Platform CDF environment to provide a more seamless user experience with other ...
Read more >Automating infrastructure deployments in the Cloud with ...
In this exercise, you will create azure resources using Terraform as part of your deployment(CD) pipeline and deploy the PartsUnlimited ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If the
upgrade
command by default prompts a confirmation message, why are you guys prompting a second confirmation message?If further explanation needs to be provided to the user, to prevent unintentional operations, that could be done on the first prompt message. I see that you have this pattern of prompting twice in few commands there, but I would like to know the reason for doing so.
Also since that you have NoTTYException, that prevents some simple automation like:
yes | az aks upgrade...
orprintf 'y\n' | az aks upgrade...
Duplicate of https://github.com/Azure/azure-cli/issues/11099,
For a workaround @epierotto :
az resource update --ids <aks_resource_id> --set 'properties.kubernetesVersion=<k8s_version>'--set 'properties.agentPoolProfiles[0].orchestratorVersion=<k8s_version>'