nerdexam
Microsoft

AZ-104 · Question #517

Hotspot Question You have an Azure subscription that contains the resources shown in the following table In Azure Cloud Shell, you need to create a virtual machine by using an Azure Resource Manager (

The correct answer is The command should include 'New-AzResourceGroup'. = No; The command should include 'New-AzResource'. = No; The command should include 'New-AzResourceGroupDeployment'. = Yes; The command should include 'ResourceGroupName RG1' as a tag. = Yes; The command should include 'Subscription ID 9c8bc1cd-7655-4c66-b3ea-a8ee101d8f75' as a tag. = Yes; The command should include 'Tag1' as a tag. = No. To deploy an ARM template in Azure PowerShell, the correct cmdlet is 'New-AzResourceGroupDeployment', which deploys resources defined in a template to an existing resource group. Since the resource group RG1 already exists in the subscription, you specify it using '-ResourceGroup

Submitted by emma.c· Mar 4, 2026Deploy and manage Azure compute resources - specifically deploying infrastructure using Azure Resource Manager templates via PowerShell cmdlets (AZ-104: Implement and Manage Storage / Deploy resources using ARM templates)

Question

Hotspot Question You have an Azure subscription that contains the resources shown in the following table In Azure Cloud Shell, you need to create a virtual machine by using an Azure Resource Manager (ARM) template. How should you complete the command? To answer, select the appropriate options in the answer area, NOTE: Each correct selection is worth one point. Answer:

Exhibits

AZ-104 question #517 exhibit 1
AZ-104 question #517 exhibit 2
AZ-104 question #517 exhibit 3
AZ-104 question #517 exhibit 4

Answer Area

  • The command should include 'New-AzResourceGroup'.No
  • The command should include 'New-AzResource'.No
  • The command should include 'New-AzResourceGroupDeployment'.Yes
  • The command should include 'ResourceGroupName RG1' as a tag.Yes
  • The command should include 'Subscription ID 9c8bc1cd-7655-4c66-b3ea-a8ee101d8f75' as a tag.Yes
  • The command should include 'Tag1' as a tag.No

Explanation

To deploy an ARM template in Azure PowerShell, the correct cmdlet is 'New-AzResourceGroupDeployment', which deploys resources defined in a template to an existing resource group. Since the resource group RG1 already exists in the subscription, you specify it using '-ResourceGroupName RG1' rather than creating a new one. The Subscription ID parameter helps target the correct subscription scope when the deployment is executed.

Topics

#ARM Templates#Azure PowerShell#Resource Deployment#Azure Cloud Shell

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice