Last active
August 27, 2019 02:10
-
-
Save ronamosa/6460d23f97409579f5ac5291220ee6a6 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# stolen from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest | |
# "run it straight". | |
# get updates, add required | |
sudo apt-get update -y | |
sudo apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg | |
# grab M$ keys | |
curl -sL https://packages.microsoft.com/keys/microsoft.asc | \ | |
gpg --dearmor | \ | |
sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null | |
# setup repo source | |
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 and install cli | |
sudo apt-get update -y | |
sudo apt-get install -y azure-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment