Skip to content

Instantly share code, notes, and snippets.

@rexwhitten
Created March 23, 2022 14:08
Show Gist options
  • Save rexwhitten/8163110ef840308dbafbcfc7c265ba0b to your computer and use it in GitHub Desktop.
Save rexwhitten/8163110ef840308dbafbcfc7c265ba0b to your computer and use it in GitHub Desktop.
Install Azure CLI on Ubuntu
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
curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-get -y install apt-transport-https
sudo apt-get update && sudo apt-get -y install azure-cli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment