Last active
July 17, 2019 08:29
-
-
Save nordri/e2ad404f04eda0e37c3435a756dcaaca to your computer and use it in GitHub Desktop.
Install Azure Cli unattended
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
#!/bin/bash -x | |
apt-get update | |
apt-get install -y curl apt-transport-https lsb-release gnupg | |
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.asc.gpg | |
AZ_REPO=$(lsb_release -cs) | |
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" > /etc/apt/sources.list.d/azure-cli.list | |
apt-get update | |
apt-get -y install azure-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment