Skip to content

[Doc] Add doc for installing Azure CLI with pip #20476

Description

@jiasli

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

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
  3. Not actively maintained. For example, it support Ubuntu up to 18.04:
    elif distname == 'ubuntu' and version in ['15.10', '16.04', '18.04']or distname == 'debian' and version.startswith('8'):
    dep_list = ['libssl-dev', 'libffi-dev', python_dep, 'build-essential']

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions