0
0
Azurecloud~10 mins

Why resource organization matters in Azure - Test Your Understanding

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

Complete the code to create a resource group in Azure.

Azure
az group create --name [1] --location eastus
Drag options to blanks, or click blank then click option'
Aeastus
Bvm1
Cstorageaccount
DMyResourceGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using a location name instead of a resource group name.
Using a resource name instead of a group name.
2fill in blank
medium

Complete the code to list all resources in a specific resource group.

Azure
az resource list --resource-group [1]
Drag options to blanks, or click blank then click option'
Astorageaccount
Beastus
CMyResourceGroup
Dvm1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a resource name instead of the resource group name.
Using a location name instead of the resource group name.
3fill in blank
hard

Fix the error in the command to delete a resource group.

Azure
az group delete --name [1] --yes --no-wait
Drag options to blanks, or click blank then click option'
AMyResourceGroup
Beastus
Cvm1
Dstorageaccount
Attempts:
3 left
💡 Hint
Common Mistakes
Trying to delete a resource by specifying a resource name instead of the group.
Using a location name instead of the resource group name.
4fill in blank
hard

Fill both blanks to tag a resource with environment and owner information.

Azure
az resource tag --tags [1]=[2] --resource-group MyResourceGroup --name myVM --resource-type Microsoft.Compute/virtualMachines
Drag options to blanks, or click blank then click option'
Aenvironment
Bproduction
Cowner
Dadmin
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping key and value positions.
Using resource group name instead of tag key.
5fill in blank
hard

Fill all three blanks to create a policy assignment for a resource group.

Azure
az policy assignment create --name [1] --policy [2] --scope /subscriptions/12345/resourceGroups/[3]
Drag options to blanks, or click blank then click option'
AEnforceTagPolicy
BRequireTag
CMyResourceGroup
DAdminPolicy
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing policy assignment name with policy definition name.
Using subscription ID instead of resource group name in scope.