0
0
Azurecloud~10 mins

Why VMs provide compute flexibility in Azure - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
AStandard_B1s
BUbuntuLTS
CmyResourceGroup
DmyVM
Attempts:
3 left
💡 Hint
Common Mistakes
Using image name instead of size
Using resource group name as size
2fill in blank
medium

Complete 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'
AStandard_B1s
BStandard_D2s_v3
CmyVM
DUbuntuLTS
Attempts:
3 left
💡 Hint
Common Mistakes
Using image name instead of size
Using VM name as size
3fill in blank
hard

Fix 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'
Aresize
Bcreate
Cdelete
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using create instead of start
Using delete instead of start
4fill in blank
hard

Fill 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'
AUbuntuLTS
BStandard_B1s
CStandard_D2s_v3
DWindowsServer
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing OS image with size
Using WindowsServer with a Linux size
5fill in blank
hard

Fill 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'
Aresize
BStandard_D4s_v3
Cstart
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using delete instead of start
Starting before resizing