よく使うコマンドなど
$ az login
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code HZZZZZZZZZ to authenticate.
だいたい必要なのは name と SubscriptionId なので
az account list --query "[].{name:name,id:id}" -o json
output を table にするとなぜか SubscriptionId が表示されない。
az account set --subscription "your-subscription-name"
your-subscription-name は name か id
カレントのサブスクリプションを表示
az account show
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/<SUBSCRIPTION_ID>"