nerdexam
Microsoft

AZ-104 · Question #708

Hotspot Question Your company purchases a new Azure subscription. You create a file named Deploy.json as shown in the following exhibit. You connect to the subscription and run the following cmdlet. N

The correct answer is You can deploy a virtual machine to RG1. = Yes; You can deploy a virtual machine to RG2. = No; You can manually create a resource group named RG3. = Yes. The Deploy.json is an ARM template deployed at the subscription scope (evidenced by New-AzDeployment, which is a subscription-level deployment cmdlet). The template creates resource groups as part of the deployment - RG1 is created by the template and can have resources like VMs

Submitted by marco_it· Mar 4, 2026Deploy and manage Azure compute resources / Implement and manage infrastructure as code using ARM templates - typically mapped to AZ-104 'Deploy and Manage Azure Compute Resources' or 'Manage Azure identities and governance' domain covering resource group and subscription-scope deployments.

Question

Hotspot Question Your company purchases a new Azure subscription. You create a file named Deploy.json as shown in the following exhibit. You connect to the subscription and run the following cmdlet. New-AzDeployment -Location westus -TemplateFile "deploy.json" For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Answer:

Exhibits

AZ-104 question #708 exhibit 1
AZ-104 question #708 exhibit 2

Answer Area

  • You can deploy a virtual machine to RG1.Yes
  • You can deploy a virtual machine to RG2.No
  • You can manually create a resource group named RG3.Yes

Explanation

The Deploy.json is an ARM template deployed at the subscription scope (evidenced by New-AzDeployment, which is a subscription-level deployment cmdlet). The template creates resource groups as part of the deployment - RG1 is created by the template and can have resources like VMs deployed into it. RG2 is not created by the template (only RG1 is defined in the template), so it does not exist and cannot receive VM deployments. RG3 can be manually created at any time because Azure always allows users with appropriate permissions to create new resource groups independently of any template deployment.

Topics

#ARM Templates#Subscription-Level Deployment#Resource Groups#New-AzDeployment

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice