Skip to content

Upgrading az MSI installation in non-interactive way #27456

@nascarsayan

Description

@nascarsayan

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

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure 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.Upgradeaz upgradefeature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions