Azure / Azure/azure-cli

[Packaging] Install Azure CLI under the user folder

Open
#14,593 1 comment 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad feature-request Packaging
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

When installing Azure CLI [on Windows](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest&tabs=azure-cli) or [Linux](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest), **admin** (**superuser**) permission is necessary.

Users who don't have admin (superuser) permission can't install Azure CLI in the recommended ways - MSI and `apt`. `pip install` is the only way to workaround it.

Even after Azure CLI is installed by the system admin, the user may need to edit files like `C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\certifi\cacert.pem` under the Azure CLI installation folder to make it [work behind a proxy](https://docs.microsoft.com/en-us/cli/azure/use-cli-effectively?view=azure-cli-latest#work-behind-a-proxy).

**Describe the solution you'd like**

It should be possible for the user to select to install Azure CLI under the **user folder**:

- On Windows: `C:\Users\`
- On Linux: `/home/`

Python has such functionality:

![image](https://user-images.githubusercontent.com/4003950/88917296-1eb20080-d29a-11ea-9f7b-16a5eb10e09d.png)

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.