Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a virtual machine with a flexible size in Azure.
Azure
az vm create --resource-group myResourceGroup --name myVM --image UbuntuLTS --size [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using image name instead of size
Using resource group name as size
✗ Incorrect
The --size parameter specifies the VM size, allowing flexibility in compute power.
2fill in blank
mediumComplete the code to resize an existing Azure VM to a larger size.
Azure
az vm resize --resource-group myResourceGroup --name myVM --size [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using image name instead of size
Using VM name as size
✗ Incorrect
The --size parameter changes the VM's compute resources to the specified size.
3fill in blank
hardFix the error in the command to start a VM in Azure.
Azure
az vm [1] --resource-group myResourceGroup --name myVM Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using create instead of start
Using delete instead of start
✗ Incorrect
The start command powers on an existing VM.
4fill in blank
hardFill both blanks to create a VM with a specific OS and size.
Azure
az vm create --resource-group myResourceGroup --name myVM --image [1] --size [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing OS image with size
Using WindowsServer with a Linux size
✗ Incorrect
The --image sets the OS, and --size sets the VM's compute power.
5fill in blank
hardFill all three blanks to resize a VM and then start it.
Azure
az vm [1] --resource-group myResourceGroup --name myVM --size [2] && az vm [3] --resource-group myResourceGroup --name myVM
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using delete instead of start
Starting before resizing
✗ Incorrect
First, resize the VM to a bigger size, then start it to apply changes.