Skip to content

Instantly share code, notes, and snippets.

@nordri
Last active July 17, 2019 08: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 nordri/e2ad404f04eda0e37c3435a756dcaaca to your computer and use it in GitHub Desktop.
Save nordri/e2ad404f04eda0e37c3435a756dcaaca to your computer and use it in GitHub Desktop.
Install Azure Cli unattended
#!/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