
Explanation:
The correct answer is A. The New-AzResourceGroupDeployment cmdlet allows you to use a custom ARM template file to deploy resources to a resource group. This method is appropriate for creating a virtual machine using an ARM template in Azure Cloud Shell. Option B is also part of the correct approach but is more specific, referring to a parameter of the cmdlet used in option A. Option C and D are incorrect since they either do not properly utilize the ARM template or make incorrect assumptions about the cmdlet usage.
Ultimate access to all questions.
No comments yet.
How do you create a virtual machine in Azure Cloud Shell using an ARM template?
A
Use the New-AzResourceGroupDeployment cmdlet with a custom ARM template file to deploy resources to a resource group.
B
Specify the resource group name using the -ResourceGroupName parameter in the New-AzResourceGroupDeployment cmdlet.
C
While New-AzVm can create a VM, it does not utilize a template and requires all parameters to be provided in the command line.
D
The command to deploy a VM using an ARM template involves specifying the existing resource group and the template.