Microsoft Azure Administrator Associate AZ-104 Practice Question
You have an Azure Resource Manager (ARM) template named 'myTemplate.json' stored locally on your computer. You need to deploy this template to an existing resource group called 'myResourceGroup' using the Azure CLI. Which command should you use?
az resource deploy --template-file myTemplate.json
The correct command to deploy an ARM template to a specific resource group using the Azure CLI is:
az deployment group create --resource-group myResourceGroup --template-file myTemplate.json
This command specifies the deployment at the resource group level using az deployment group create, identifies the target resource group with --resource-group, and points to the local template file with --template-file. The az deployment create command is used for subscription-level deployments, and the az group deployment create command is deprecated. The az resource deploy command is not a valid Azure CLI command for deploying templates.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is an ARM template?
Open an interactive chat with Bash
What is the purpose of the Azure CLI?
Open an interactive chat with Bash
What is a resource group in Azure?
Open an interactive chat with Bash
Microsoft Azure Administrator Associate AZ-104
Deploy and manage Azure compute resources
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access