Azure/CLI

From Wiki
< Azure
Revision as of 08:44, 12 April 2019 by Marcluer (talk | contribs)

Installation of Azure CLI under Linux

sudo apt-get update
sudo apt-get install curl apt-transport-https lsb-release gpg

curl -sL https://packages.microsoft.com/keys/microsoft.asc | \
    gpg --dearmor | \
    sudo tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null

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

sudo apt-get update
sudo apt-get install azure-cli
  • testing
az login