Azure / Azure/azure-cli

[Doc] Add doc for installing Azure CLI with pip

Open
#20,476 9 comments 1 reaction 3 assignees Assigned to @evelyn-ys View on GitHub
Documentation feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

There are platforms or architectures where we don't officially distribute native packages:

- https://github.com/Azure/azure-cli/issues/7368
- https://github.com/Azure/azure-cli/issues/18766
- https://github.com/Azure/azure-cli/issues/19591
- https://github.com/Azure/azure-cli/issues/16526

The solution is to install `azure-cli` from PyPI: https://pypi.org/project/azure-cli/

```
pip install azure-cli
```

We do have the doc https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=script which is internally using `pip` to install `azure-cli`. It calls https://github.com/Azure/azure-cli/blob/dev/scripts/curl_install_pypi/install which then calls https://github.com/Azure/azure-cli/blob/dev/scripts/curl_install_pypi/install.py.

However, this method is

1. Too complex/automated and leaves users with very few customization options
2. Interactive, which is not suitable for automated installation: ![image](https://user-images.githubusercontent.com/4003950/142964846-54c9ff88-0d0c-4aa5-9e4e-9d9804e73ab6.png)
3. Not actively maintained. For example, it support Ubuntu up to 18.04: https://github.com/Azure/azure-cli/blob/50ccb24528eb36529d1432808f3ff385cc4c04aa/scripts/curl_install_pypi/install.py#L366-L367

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.