Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 14

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].

  1. azure vm start
  2. New-AzVM
  3. az vm create
  4. Get-AzVM
  5. Set-AzVM

Correct answers

  1. Gap 1: New-AzVM
  2. 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.