4.5 Ubuntu Azure CLI

20210829

An Azure virtual machine (and in fact all Azure services) can be managed through the Azure command line tool.

See https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux.

Install CLI

wajig update
wajig install ca-certificates curl apt-transport-https lsb-release gnupg
curl -sL https://packages.microsoft.com/keys/microsoft.asc |
    gpg --dearmor |
    sudo tee /etc/apt/trusted.gpg.d/microsoft.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
wajig update
wajig install azure-cli

There is no repos for Ubuntu 21.04 (hirsute) so edit /etc/apt/sources.list.d/azure-cli.list to replace hirute with groovy.

az login

This will pop up a browser window to establish your login credentials.



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0