Azure access
Sign in, select your subscription and confirm your permissions.
Requires
- The software checks have passed.
- An active Azure subscription with billing or credits. Review the cost estimate before provisioning.
- Permission to create resources and assign Azure roles in that subscription. Verify both below.
Sign in and choose the lab subscription
az login signs you in to Azure. Choose your development subscription when prompted. az account show displays the current subscription.
az login
az account show --output table
Check your Azure RBAC roles
az ad signed-in-user show supplies your Entra object ID to az role assignment list. --include-groups includes roles assigned through groups, --include-inherited includes roles from parent scopes, and --fill-principal-name false skips name lookups.
az role assignment list --assignee-object-id "$(az ad signed-in-user show --query id --output tsv)" --include-groups --include-inherited --fill-principal-name false --query "[].{Role:roleDefinitionName,Scope:scope,Condition:condition}" --output table
--query filters the Azure CLI response and selects fields. --output table displays rows and columns, --output tsv prints tab-separated values you can capture in shell variables, and --output json gives structured data.
Owner covers both resource creation and role assignments. With Contributor, you also need Role Based Access Control Administrator or User Access Administrator to grant roles to the lab's managed identities. Find role descriptions, IDs, and permissions in the Azure built-in roles catalog.
Check access in the Azure portal
Open the selected subscription in the portal and go to Access control (IAM) → Check access → View my access. Activate any eligible roles you need for the lab through Privileged Identity Management (PIM). Microsoft's access check guide