Complete the code to create a new Azure AD tenant using Azure CLI.
az ad tenant create --display-name [1]The --display-name parameter requires the name of the new tenant, such as 'MyTenant'.
Complete the command to list all Azure AD directories in your subscription.
az account [1] --query '[].tenantId'
The list command shows all directories (tenants) associated with your account.
Fix the error in the command to switch to a specific subscription.
az account set --subscription [1]The az account set command requires the subscription ID, not the tenant ID or name.
Fill both blanks to create a new user in an Azure AD tenant with the correct user principal name and password.
az ad user create --display-name [1] --password [2] --user-principal-name user@contoso.com
The --display-name is the user's full name, and --password must be a strong password like 'P@ssw0rd123'.
Fill all three blanks to assign a role to a user in a specific Azure AD tenant.
az role assignment create --assignee [1] --role [2] --scope [3]
The --assignee is the user's email, --role is the role name like 'Contributor', and --scope is the subscription ID path.