0
0
Azurecloud~10 mins

Azure AD tenants and directories - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new Azure AD tenant using Azure CLI.

Azure
az ad tenant create --display-name [1]
Drag options to blanks, or click blank then click option'
AMyTenant
Btenant
Ccreate
Ddirectory
Attempts:
3 left
💡 Hint
Common Mistakes
Using command keywords instead of a name.
Leaving the display name blank.
2fill in blank
medium

Complete the command to list all Azure AD directories in your subscription.

Azure
az account [1] --query '[].tenantId'
Drag options to blanks, or click blank then click option'
Ashow
Bcreate
Clist
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'show' which only displays one item.
Using 'create' or 'delete' which modify resources.
3fill in blank
hard

Fix the error in the command to switch to a specific subscription.

Azure
az account set --subscription [1]
Drag options to blanks, or click blank then click option'
AtenantId
BsubscriptionId
CsubscriptionName
DtenantName
Attempts:
3 left
💡 Hint
Common Mistakes
Using tenant ID instead of subscription ID.
Using subscription name instead of ID.
4fill in blank
hard

Fill both blanks to create a new user in an Azure AD tenant with the correct user principal name and password.

Azure
az ad user create --display-name [1] --password [2] --user-principal-name user@contoso.com
Drag options to blanks, or click blank then click option'
AJohn Doe
BP@ssw0rd123
CJane Smith
Dpassword
Attempts:
3 left
💡 Hint
Common Mistakes
Using weak passwords like 'password'.
Using invalid display names.
5fill in blank
hard

Fill all three blanks to assign a role to a user in a specific Azure AD tenant.

Azure
az role assignment create --assignee [1] --role [2] --scope [3]
Drag options to blanks, or click blank then click option'
Auser@contoso.com
BContributor
C/subscriptions/12345678-1234-1234-1234-123456789abc
DOwner
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up role names.
Using incorrect scope format.