Complete the code to create a resource group automatically in Azure.
az group create --name [1] --location eastusThe --name parameter specifies the resource group name, which is required to create it.
Complete the code to deploy a virtual machine automatically using Azure CLI.
az vm create --resource-group MyResourceGroup --name [1] --image UbuntuLTSThe --name parameter specifies the name of the virtual machine to create.
Fix the error in the command to automate storage account creation.
az storage account create --name [1] --resource-group MyResourceGroup --location eastus --sku Standard_LRSThe --name parameter requires a unique storage account name in lowercase letters and numbers only.
Fill both blanks to automate creating a network security group and associating it with a subnet.
az network nsg create --resource-group MyResourceGroup --name [1] az network vnet subnet update --resource-group MyResourceGroup --vnet-name MyVNet --name MySubnet --network-security-group [2]
The network security group name must be the same when creating and associating it with the subnet.
Fill all three blanks to automate tagging resources during creation.
az resource tag --tags [1]=[2] --resource-group MyResourceGroup --resource-type Microsoft.Compute/virtualMachines --name [3]
Tags help organize resources. Here, 'environment' is the tag key, 'production' is the value, and 'MyVM' is the resource name.