Skip to content

The AZ UPGRADE command fails because of corporate Firewall restrictions #22447

@sdg002

Description

@sdg002

Related command
az upgrade

Describe the bug
The upgrade command does not work because of corporate firewall restrictions (No .EXE, .DLL, MSI can be downloaded from the internet). As seen in the evidence below, the upgrade command of Azure CLI attempts to download a MSI file.
image

To Reproduce

  • Ensure you have Azure CLI installed. (I was assited by my corporate IT help desk due to download restrictions)
  • You need to have a workstation where firewall has blocked access to files with the extension .msi
  • Now execute the command az ugprade

Expected behavior

  • The upgrade command should download the latest binaries and update the local installation of Azure CLI
  • The upgrade should be as silent as possible.
  • The upgrade command should not prompt me for elevated privilges.

Environment summary

  • Windows 10 desktop
  • Corporate workstation
  • Firewall rules apply

Additional context

  • I envision a solution where Microsoft makes the Azure CLI available as a ZIP (See Azure Data Studio and Power Shell Core as examples)
  • I should be able to install the ZIP In a folder of my choice and place that folder on PATH environment variable
  • When I issue the az upgrade command, the copy of the AZ CLI which was downloaded should get upgraded silently

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions