Question 45 — AZ-104 Practice Exam 14
Fill in the blanks by selecting the correct options from the dropdown menus.
The Azure PowerShell command to create a new VM is [Gap 1], while the Azure CLI command is [Gap 2].
- azure vm start
- New-AzVM
- az vm create
- Get-AzVM
- Set-AzVM
Correct answers
- Gap 1: New-AzVM
- Gap 2: az vm create
Explanations
Correct:
New-AzVM – PowerShell cmdlet for creating new VMs.
az vm create – CLI command for VM creation.
Wrong:
Get-AzVM – Retrieves existing VM details, not for creation.
Set-AzVM – Updates configuration of an existing VM.
azure vm start – Not the correct syntax; CLI uses az.