Recall & Review
beginner Click to reveal answer
What is the Azure CLI command to create a new virtual machine?
The command is
az vm create. It lets you specify the resource group, VM name, image, size, and other settings to create a new VM.beginner Click to reveal answer
How do you start a stopped Azure virtual machine using the CLI?
Use the command
az vm start --resource-group <group> --name <vm-name> to power on a stopped VM.beginner Click to reveal answer
Which Azure CLI command stops a running virtual machine?
The command
az vm stop --resource-group <group> --name <vm-name> stops a running VM, releasing its compute resources but keeping the disk.intermediate Click to reveal answer
What happens to the VM's disk when you stop a VM using
az vm stop?The VM's disk remains intact and attached. The VM is deallocated, so you don't pay for compute, but storage costs continue.
beginner Click to reveal answer
Why is it important to specify the resource group when running VM commands in Azure CLI?
Because resource groups organize resources. Specifying the group tells Azure exactly which VM you want to manage, avoiding confusion.
Which command creates a new Azure VM?
✗ Incorrect
The
az vm create command is used to create a new virtual machine.What does
az vm stop do?✗ Incorrect
az vm stop stops and deallocates the VM, freeing compute resources but keeping disks.How do you start a stopped VM in Azure CLI?
✗ Incorrect
Use
az vm start to power on a stopped VM.Which parameter is required to specify the VM's location in
az vm create?✗ Incorrect
The
--location parameter sets the Azure region for the VM.What happens to the VM's disk when you stop it with
az vm stop?✗ Incorrect
Stopping a VM keeps the disk intact, so storage costs continue.
Explain the steps and commands to create, start, and stop an Azure virtual machine using the CLI.
Think about the order: create first, then start or stop as needed.
You got /4 concepts.
Describe why specifying the resource group is important when managing Azure VMs with CLI commands.
Resource groups are like folders for your cloud resources.
You got /3 concepts.
