AZ-140 · Question #244
You have an Azure subscription. You create an Azure Resource Manager (ARM) template named AVD.json that defines an Azure Virtual Desktop deployment. You need to use PowerShell to provision the…
The correct answer is D. New-AzResourceGroupDeployment. To provision an Azure Virtual Desktop deployment using an ARM template with PowerShell, you should use the New-AzResourceGroupDeployment cmdlet. This cmdlet allows you to deploy resources defined in an ARM template to a resource group.
Question
You have an Azure subscription. You create an Azure Resource Manager (ARM) template named AVD.json that defines an Azure Virtual Desktop deployment. You need to use PowerShell to provision the deployment by using AVD.json. Which PowerShell cmdlet should you use?
Options
- ANew-AzWvdHostPool
- BNew-AzResource
- CNew-AzWvdRegistrationInfo
- DNew-AzResourceGroupDeployment
How the community answered
(64 responses)- A2% (1)
- B2% (1)
- C5% (3)
- D92% (59)
Explanation
To provision an Azure Virtual Desktop deployment using an ARM template with PowerShell, you should use the New-AzResourceGroupDeployment cmdlet. This cmdlet allows you to deploy resources defined in an ARM template to a resource group.
Topics
Community Discussion
No community discussion yet for this question.