Azure / Azure/azure-cli

[Feature Request] Use CDN to distribute MSI package

Open
#19,447 5 comments 2 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad Feature Candidate feature-request Installation
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Symptom

Azure CLI MSI package is delivered by an [Azure storage account](https://docs.microsoft.com/en-us/azure/storage/) located in [West US (California)](https://azure.microsoft.com/en-us/global-infrastructure/geographies/): https://azcliprod.blob.core.windows.net/msi/azure-cli-2.27.2.msi

Downloading Azure CLI MSI package is slow:

```
> curl.exe https://azcliprod.blob.core.windows.net/msi/azure-cli-2.27.2.msi -o out.msi
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 48.3M 100 48.3M 0 0 2752k 0 0:00:18 0:00:18 --:--:-- 1508k
```

## Proposal

We should use [Azure CDN](https://azure.microsoft.com/en-us/services/cdn/) to accelerate the MSI distribution.

Using Akamai CDN, the download speed can be significantly improved (14x faster):

```
> curl.exe https://azclicdn3.azureedge.net/msi/azure-cli-2.27.2.msi -o out.msi
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 48.3M 100 48.3M 0 0 24.1M 0 0:00:02 0:00:02 --:--:-- 21.3M
```

Notes: Tests are made with Microsoft corp net.

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.