Skip to content

Instantly share code, notes, and snippets.

@Adron
Created August 1, 2019 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Adron/283fc199a7d0a801f78b63f04f47aaff to your computer and use it in GitHub Desktop.
Save Adron/283fc199a7d0a801f78b63f04f47aaff to your computer and use it in GitHub Desktop.
Installing Azure CLI on Debian/Ubuntu Linux
# 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