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/
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
- Too complex/automated and leaves users with very few customization options
- Interactive, which is not suitable for automated installation:

- 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'] |
There are platforms or architectures where we don't officially distribute native packages:
The solution is to install
azure-clifrom PyPI: https://pypi.org/project/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
pipto installazure-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
azure-cli/scripts/curl_install_pypi/install.py
Lines 366 to 367 in 50ccb24