Mark is the lead Azure trainer at MDFT Pro training agency, working with Claire, the cloud architect trainee. They are conducting an advanced Azure Resource Manager workshop for a group of IT professionals preparing for the AZ-104 certification. During the hands-on lab session, students need to deploy virtual machines using ARM templates through Azure Cloud Shell.
Mark has prepared a scenario where students must complete a PowerShell command that deploys a VM using a pre-built ARM template. The template requires specific parameters including administrative credentials and resource targeting information. Students have access to a subscription containing ManagementGroup1, resource group RG1, subscription ID 9c8bc1cd-7655-4c66-b3ea-a8ee101d8f75, and Tag1 for resource organization.
The following table shows the available Azure resources:
Name | Type |
---|---|
ManagementGroup1 | Management group |
RG1 | Resource group |
9c8bc1cd-7655-4c66-b3ea-a8ee101d8f75 | Subscription ID |
Tag1 | Tag |
Students need to complete this PowerShell command in Azure Cloud Shell:
$adminPassword = Read-Host -Prompt "Enter the administrator password" -AsSecureString
New-AzResourceGroupDeployment
-TemplateUri "https://mdftpro.com/templates/...."
-adminUsername admin
-adminPassword $adminPassword
__________
-dnsLabelPrefix ContosoVM1
Which parameter should complete the command to properly target the resource deployment?
Choose the correct answer from the options below.
Explanations for each answer: