Complete the code to create a resource group in Azure.
az group create --name [1] --location eastusThe --name parameter specifies the resource group name. Here, MyResourceGroup is a valid name.
Complete the code to list all resources in a specific resource group.
az resource list --resource-group [1]The --resource-group parameter requires the name of the resource group to list its resources.
Fix the error in the command to delete a resource group.
az group delete --name [1] --yes --no-waitThe --name parameter must be the resource group name to delete it properly.
Fill both blanks to tag a resource with environment and owner information.
az resource tag --tags [1]=[2] --resource-group MyResourceGroup --name myVM --resource-type Microsoft.Compute/virtualMachines
Tags are key-value pairs. Here, environment=production is one tag example.
Fill all three blanks to create a policy assignment for a resource group.
az policy assignment create --name [1] --policy [2] --scope /subscriptions/12345/resourceGroups/[3]
The --name is the assignment name, --policy is the policy definition name, and --scope targets the resource group.