Created
January 28, 2019 19:30
-
-
Save skizhak/7f77e3140ef8f1efbca1d7c0c2f61135 to your computer and use it in GitHub Desktop.
Install Azure CLI on ubuntu machines
This file contains hidden or 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
#Follow https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest | |
sudo apt-get install apt-transport-https lsb-release software-properties-common dirmngr -y | |
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 | |
sudo apt-key --keyring /etc/apt/trusted.gpg.d/Microsoft.gpg adv --keyserver packages.microsoft.com --recv-keys BC528686B50D79E339D3721CEB3E94ADBE1229CF | |
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