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.

The command `az aks upgrade` prompts for user input when you provide `--yes`

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
epierottocommented, Oct 22, 2019

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... or printf 'y\n' | az aks upgrade...

1reaction
tdihpcommented, Mar 2, 2020

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>'

Read more comments on GitHub >

github_iconTop 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 >

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