Azure / Azure/azure-cli

Use `az upgrade` in quiet mode

Open
#16,617 18 comments 3 reactions 2 assignees Claimed by @bebound View on GitHub
act-platform-engineering-squad feature-request Upgrade
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Is your feature request related to a problem? Please describe.**
I'd like to use `az upgrade` without the need of human intervention on Windows.
Currently, running `az upgrade -y --all` still prompts a dialog where you have to accept license and click on next.

**Describe the solution you'd like**
`az upgrade --yes --all --quiet` upgrades all the az cli quietly, without any dialog or human interaction.

**Describe alternatives you've considered**
~~`Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi` would be doable, but it is way less elegant, and not cross platform.~~ Scratch that, I just tried and it doesn't work for updating from 2.16.0 to 2.18.0.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.