0
0
Azurecloud~10 mins

Users and groups in Azure - 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 user with the specified display name.

Azure
az ad user create --display-name [1] --user-principal-name user@example.com --password Pass@word123
Drag options to blanks, or click blank then click option'
A"Admin User"
BJohnDoe
Cuser1
D"John Doe"
Attempts:
3 left
💡 Hint
Common Mistakes
Not using quotes for display name with spaces
Using username instead of display name
2fill in blank
medium

Complete the code to add an existing user to a group by specifying the group ID.

Azure
az ad group member add --group [1] --member-id 12345678-90ab-cdef-1234-567890abcdef
Drag options to blanks, or click blank then click option'
Agroupname
BMyGroup
Ca1b2c3d4-e5f6-7890-abcd-ef1234567890
D1234
Attempts:
3 left
💡 Hint
Common Mistakes
Using group name instead of group ID
Using incomplete or invalid GUID
3fill in blank
hard

Fix the error in the command to list all users in a specific group by specifying the correct parameter.

Azure
az ad group member list --group [1]
Drag options to blanks, or click blank then click option'
Agroupname
Ba1b2c3d4-e5f6-7890-abcd-ef1234567890
CMyGroup
D123456
Attempts:
3 left
💡 Hint
Common Mistakes
Using group name instead of group ID
Using wrong parameter name
4fill in blank
hard

Fill both blanks to create a new group and then add a user to it.

Azure
az ad group create --display-name [1] --mail-nickname [2]
Drag options to blanks, or click blank then click option'
A"Dev Team"
Bdevteam
C"Marketing Group"
Dmarketing
Attempts:
3 left
💡 Hint
Common Mistakes
Using mail nickname with spaces
Not quoting display name with spaces
5fill in blank
hard

Fill all three blanks to remove a user from a group using the correct parameters.

Azure
az ad group member remove --group [1] --member-id [2] --yes [3]
Drag options to blanks, or click blank then click option'
Aa1b2c3d4-e5f6-7890-abcd-ef1234567890
B12345678-90ab-cdef-1234-567890abcdef
C--only-show-errors
D--no-wait
Attempts:
3 left
💡 Hint
Common Mistakes
Using group or member names instead of IDs
Using wrong flags for output control