Skip to content

Azure

Install Azure CLI tool on Linux

Microsoft supply an installation script here which sets up a new API repo and installs the az command.

To log in to Azure

az login

To list all available azure regions

az account list-locations -o table

List all running VMs

az vm list --resource-group MyResourceGroup --show-details --query "[?powerState=='VM running'].id" --output tsv