0
0
Azurecloud~5 mins

VM commands (create, start, stop) in Azure - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
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.
Click to reveal answer
beginner
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.
Click to reveal answer
beginner
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.
Click to reveal answer
intermediate
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.
Click to reveal answer
beginner
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.
Click to reveal answer
Which command creates a new Azure VM?
Aaz vm create
Baz vm start
Caz vm stop
Daz vm delete
What does az vm stop do?
AStarts the VM
BDeletes the VM and its disks
CCreates a new VM
DPowers off and deallocates the VM
How do you start a stopped VM in Azure CLI?
Aaz vm restart
Baz vm start
Caz vm stop
Daz vm create
Which parameter is required to specify the VM's location in az vm create?
A--name
B--resource-group
C--location
D--size
What happens to the VM's disk when you stop it with az vm stop?
ADisk remains and you keep storage costs
BDisk is deleted
CDisk is detached and lost
DDisk is backed up automatically
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.