Complete the code to deploy an ARM template using Azure CLI.
az deployment group create --resource-group myResourceGroup --template-file [1]The --template-file parameter requires the ARM template file, which is usually a JSON file like template.json.
Complete the code to deploy a Bicep template using Azure CLI.
az deployment group create --resource-group myResourceGroup --template-file [1]Bicep templates use the .bicep file extension and can be deployed directly with Azure CLI using the --template-file parameter.
Fix the error in the Azure PowerShell command to deploy an ARM template.
New-AzResourceGroupDeployment -ResourceGroupName myResourceGroup -TemplateFile [1]The -TemplateFile parameter requires the ARM template JSON file, such as template.json.
Fill both blanks to deploy a Bicep template with parameters using Azure CLI.
az deployment group create --resource-group myResourceGroup --template-file [1] --parameters [2]
The --template-file should be the Bicep file main.bicep, and --parameters should point to the parameters file parameters.json.
Fill all three blanks to deploy an ARM template with inline parameters using Azure PowerShell.
New-AzResourceGroupDeployment -ResourceGroupName myResourceGroup -TemplateFile [1] -TemplateParameterObject @{ [2] = '[3]' }
The -TemplateFile is the ARM template JSON file template.json. The -TemplateParameterObject uses a hashtable where the key is the parameter name storageAccountName and the value is the parameter value mystorage123.