Skip to content

Azure CLI

Who am I

Login and check the current context

az login
az account show --output table
az ad signed-in-user show
az group list --output table
az logout

JQ

Use jq to filter for only the results you want.

Example:

az account list | jq -r '.[].tenantId'
Back to top