Azure / Azure/azure-cli

The AZ UPGRADE command fails because of corporate Firewall restrictions

Open
#22,447 2 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad Auto-Assign customer-reported feature-request Installation Upgrade
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**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](https://user-images.githubusercontent.com/20245330/168469758-2a8692a9-95f2-4c4c-8a10-3161681bb09f.png)

**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

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.