Question 6 — AZ-104 Practice Exam 7
Arrange the steps for deploying a local ARM template using Azure CLI in the correct order.
Instruction: Drag and drop the items into the correct order, starting with the first step at the top.
- Create or select a resource group with az group create
- Sign in to Azure with az login
- Run deployment with az deployment group create
Correct answers
- Sign in to Azure with az login
- Create or select a resource group with az group create
- Run deployment with az deployment group create
Explanations
Correct Order:
Sign in to Azure with az login
Create or select a resource group with az group create
Run deployment with az deployment group create
To deploy a local ARM template using the Azure CLI, you first sign in to Azure with az login to authenticate and establish a session with your Azure account. Next, you create or select a resource group using az group create, which defines the logical container where your resources will be deployed. Finally, you run the deployment with az deployment group create, specifying the resource group and the path to your local ARM template file to actually provision the resources as defined in the template. This sequence ensures you are authenticated, have a target resource group, and then execute the deployment properly.