azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Azure CLI takes ages to download which become a huge problem for labs with that requirement

Open TechWatching opened this issue 1 year ago • 3 comments

Describe the bug

Even with an excellent connection, downloading the Azure CLI takes a very long time. It has always taken some time but I don't remember it to be so much time, it became a huge problem. The package is not that big but it takes for ever to be downloaded.

It's a problem because :

  • people get frustrated and give up installing the azure cli
  • for Microsoft Learn labs, internal workshops in companies or hands on a lab at conferences where Azure CLI is a prerequisite, it is nearly impossible to do the lab with such an download time

Related command

az upgrade

Errors

No error, just a very low speed .

Issue script & Debug output

N/A

Expected behavior

I would expect the download speed rate to be

Environment Summary

azure-cli 2.65.0

core 2.65.0 telemetry 1.1.0

Extensions: init 0.1.0 interactive 0.5.3 next 0.1.2

Dependencies: msal 1.31.0 azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe' Extensions directory 'C:\Users*******.azure\cliextensions'

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]

Additional context

I was installing 2.65.0 version

TechWatching avatar Oct 18 '24 13:10 TechWatching

Hi @TechWatching,

2.64.0 is not the latest Azure CLI(2.65.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

Thank you for opening this issue, we will look into it.

yonzhan avatar Oct 18 '24 13:10 yonzhan

Same as https://github.com/Azure/azure-cli/issues/19447

As a workaround, download from GitHub is much faster: https://github.com/Azure/azure-cli/releases

bebound avatar Oct 21 '24 06:10 bebound

I am installing mac via homebrew and it is painfully slow (and already timed out on me once). Unclear what work-arounds exist for mac users to avoid this.

hev avatar Apr 14 '25 17:04 hev