Created
August 1, 2019 17:29
-
-
Save Adron/283fc199a7d0a801f78b63f04f47aaff to your computer and use it in GitHub Desktop.
Installing Azure CLI on Debian/Ubuntu Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update the latest packages and make sure certs, curl, https transport, and related packages are updated. | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg | |
# Download and install the Microsoft signing key. | |
curl -sL https://packages.microsoft.com/keys/microsoft.asc | \ | |
gpg --dearmor | \ | |
sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null | |
# Add the software repository of the Azure CLI. | |
AZ_REPO=$(lsb_release -cs) | |
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \ | |
sudo tee /etc/apt/sources.list.d/azure-cli.list | |
# Update the repository information and install the azure-cli package. | |
sudo apt-get update | |
sudo apt-get install azure-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment