-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Related command
az upgrade
Is your feature request related to a problem? Please describe.
When azure CLI is installed via MSI in windows, there is no method of automated upgrade using script. az upgrade will invoke msiexec.exe which opens up a separate window, and the user has to follow the steps (by clicking Next, etc.).
Describe the solution you'd like
az upgrade might take in a parameter --yes for automated MSI installation of the latest version. Else, we can make automated installation the default / only behaviour.
Basically, I propose that we need to have an automated upgrade mechanism without user intervention.
Describe alternatives you've considered
From our installation / onboarding script, I manually check the latest version available by parsing setup.py, similar to how az upgrade code snippet does. If the installed version is not equal to the latest version, I download and install the MSI in non-interactive way.
This roundabout method can be replaced by az upgrade if there is a non-interactive way for az upgrade.
Additional context