Forum Discussion
muhammad_ahmod
Feb 15, 2024Copper Contributor
Need clarity on virtual machine deployments to subs
Hi, The AZ-104 Practice assessment has a question on virtual machines. I believe the answer notes is incorrect/misleading. Can virtual machines be deployed directly to a subscription or management g...
- Feb 16, 2024Feedback on practice assessments here https://forms.office.com/r/FfvhScF5JS and challenge an individual item here https://aka.ms/PracticeTestFdbk
LuigiBruno
Feb 16, 2024Steel Contributor
Hello muhammad_ahmod.
The question states that you have to use PowerShell to provision a virtual machine into a resource group by using an ARM template: the New-AzResourceGroupDeployment cmdlet is the correct answer according to the scope and the result you want to achieve.
Take a look at https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-to-resource-group?tabs=azure-powershell.
Bye.