Interview Prep/Azure/Policy, Cost, AWS Mapping and Rapid-fire

Rapid-fire: core identity and context commands.

BeginnerConceptPolicy, Cost, AWS Mapping and Rapid-fire
Answer
az login --use-device-code
az account list -o table
az account set --subscription "<name-or-id>"
az account show --query "{name:name, id:id, user:user.name}" -o table
az ad signed-in-user show --query id -o tsv          # your object id
az account get-access-token --resource https://management.azure.com --query expiresOn
az role assignment list --assignee <objectId> --all -o table
az identity create -g rg -n id-shop-web
az identity show -g rg -n id-shop-web --query "{clientId:clientId, principalId:principalId}"
Azure All Azure questions

More on Policy, Cost, AWS Mapping and Rapid-fire