Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Running Docker and Azure CLI from WSL
# This works 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] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
sudo tee /etc/apt/sources.list.d/azure-cli.list
# Install Microsoft signing key
wget https://packages.microsoft.com/keys/microsoft.asc
sudo apt-key add microsoft.asc
rm microsoft.asc
# 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
You can’t perform that action at this time.