Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Running Docker and Azure CLI from WSL
# This doesn't work on WSL - Ubuntu 18.04 LTS
# Add repository
sudo apt-get install apt-transport-https lsb-release software-properties-common -y
AZ_REPO=$(lsb_release -cs)
echo "deb [arch=amd64] $AZ_REPO main" | \
sudo tee /etc/apt/sources.list.d/azure-cli.list
# Install Microsoft signing key
sudo apt-key --keyring /etc/apt/trusted.gpg.d/Microsoft.gpg adv \
--keyserver \
--recv-keys BC528686B50D79E339D3721CEB3E94ADBE1229CF
# Install Azure CLI
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