0
0
Azurecloud~10 mins

Resource group commands in Azure - Interactive Code Practice

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

Complete the command to create a new resource group named 'MyResourceGroup' in the 'eastus' location.

Azure
az group create --name [1] --location eastus
Drag options to blanks, or click blank then click option'
Aeastus
BMyResourceGroup
CCreateGroup
DResourceGroup1
Attempts:
3 left
💡 Hint
Common Mistakes
Using the location name instead of the resource group name.
Typing the command without the --name flag.
2fill in blank
medium

Complete the command to list all resource groups in your Azure subscription.

Azure
az group [1]
Drag options to blanks, or click blank then click option'
Acreate
Bshow
Clist
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'show' which requires a specific resource group name.
Using 'create' or 'delete' which change resources instead of listing.
3fill in blank
hard

Fix the error in the command to delete a resource group named 'TestGroup'.

Azure
az group delete --name [1] --yes --no-wait
Drag options to blanks, or click blank then click option'
ATestGroup
Btestgroup
CTest_Group
Dtest-group
Attempts:
3 left
💡 Hint
Common Mistakes
Using different spellings or invalid characters for the resource group name.
Omitting the --yes flag to confirm deletion.
4fill in blank
hard

Fill both blanks to update the tags of a resource group named 'ProdGroup' with a tag key 'env' and value 'production'.

Azure
az group update --name ProdGroup --set tags.[1]=[2]
Drag options to blanks, or click blank then click option'
Aenv
Bproduction
Cenvironment
Dprod
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the tag key and value.
Using incorrect tag keys like 'environment' instead of 'env'.
5fill in blank
hard

Fill all three blanks to show details of a resource group named 'DevGroup' in JSON format.

Azure
az group [1] --name [2] --output [3]
Drag options to blanks, or click blank then click option'
Ashow
BDevGroup
Cjson
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list' instead of 'show' for a single resource group.
Forgetting to specify the output format.