-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Upgrading az MSI installation in non-interactive way #27456
Copy link
Copy link
Closed
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamInstallationOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.This label is used to track how many GitHub issues we have resolved for OKR purpose.Upgradeaz upgradeaz upgradefeature-request
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamInstallationOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.This label is used to track how many GitHub issues we have resolved for OKR purpose.Upgradeaz upgradeaz upgradefeature-request
Related command
az upgradeIs 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 upgradewill invokemsiexec.exewhich opens up a separate window, and the user has to follow the steps (by clicking Next, etc.).Describe the solution you'd like
az upgrademight take in a parameter--yesfor 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 howaz upgradecode 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 upgradeif there is a non-interactive way foraz upgrade.Additional context