You need to deploy a virtual machine (VM) to Azure from a third-party online template.
Which PowerShell cmdlet should you use?
You should use New-AzResourceGroupDeployment. This cmdlet allows you to use Azure Resource Manager (ARM) templates to create Azure resources. In this scenario, it allows you to create a VM from an ARM template.
You should not use New-AzureQuickVM or New-AzVM. Both cmdlets allows you to create a VM from a PowerShell command, not from a third-party online template. You can use New-AzureQuickVM and New-AzVM to create VMs using the classic deployment and Azure Resource Manager, respectively.
You should not use New-AzVMConfig. This cmdlet creates a VM configuration, not an actual VM.