Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a resource group in Azure CLI.
Azure
az group create --name [1] --location eastus Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the location value instead of the resource group name.
Confusing the command parameters.
✗ Incorrect
The --name parameter specifies the name of the resource group to create.
2fill in blank
mediumComplete the code to list all resource groups in Azure CLI.
Azure
az group [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'show' which requires a specific resource group name.
Using 'create' or 'delete' which modify resources.
✗ Incorrect
The list command shows all resource groups in your subscription.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a location like 'eastus' instead of the resource group name.
Confusing command words with parameter values.
✗ Incorrect
The --name parameter must be the resource group name, not a location or command.
4fill in blank
hardFill both blanks to create a resource group with a tag.
Azure
az group create --name [1] --location [2] --tags environment=production
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the name and location parameters.
Using invalid region names.
✗ Incorrect
The resource group name is 'ProdGroup' and the location is 'eastus' to create it in that region.
5fill in blank
hardFill all three blanks to tag a resource group with environment and owner.
Azure
az group update --name [1] --set tags.environment=[2] tags.owner=[3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a location instead of a resource group name.
Confusing tag keys with tag values.
✗ Incorrect
The command updates the 'ProdGroup' resource group, setting tags for environment as 'production' and owner as 'alice'.