List VMs with power state

-d enriches with runtime IP/power state; plain list omits these fields

az vm list -d -o table --query "[].{name:name,ip:publicIps,state:powerState}"

tool
az4 commands
tags
aznetworkmonitoringcloud

More az commands

  • az login --service-principal -u <id> -p "$AZ_SECRET" --tenant <id>

    Non-interactive auth for CI; modern: use --federated-token for OIDC, no secret

  • az aks get-credentials -g <name> -n <cluster> --overwrite-existing

    Merge AKS context into kubeconfig; --admin bypasses Azure AD RBAC if enabled

  • az keyvault secret show --vault-name <name> --name <name> --query value -o tsv

    Extract raw secret with no quotes via --query/-o tsv; safe to pipe into env

all 4 az commands