0
0
Azurecloud~10 mins

Creating a VM in Azure Portal - Interactive Practice

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

Complete the code to select the correct Azure service for creating a virtual machine.

Azure
az [1] create --resource-group MyResourceGroup --name MyVM --image UbuntuLTS
Drag options to blanks, or click blank then click option'
Anetwork
Bstorage
Cvm
Dcontainer
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'storage' instead of 'vm' will try to create a storage account, not a VM.
Using 'network' or 'container' are unrelated to VM creation.
2fill in blank
medium

Complete the code to specify the size of the VM during creation.

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
BMyResourceGroup
CUbuntuLTS
DMyVM
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource group or VM name instead of a size value.
Using the image name where size is expected.
3fill in blank
hard

Fix the error in the command to create a VM with SSH key authentication.

Azure
az vm create --resource-group MyResourceGroup --name MyVM --image UbuntuLTS --authentication-type [1] --ssh-key-value ~/.ssh/id_rsa.pub
Drag options to blanks, or click blank then click option'
Apassword
Bssh-key
Cssh
Dkey
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'password' instead of 'ssh-key' disables SSH key authentication.
Using incomplete or incorrect authentication types like 'ssh' or 'key'.
4fill in blank
hard

Fill both blanks to create a VM with a specific OS disk size and public IP SKU.

Azure
az vm create --resource-group MyResourceGroup --name MyVM --image UbuntuLTS --os-disk-size-gb [1] --public-ip-sku [2]
Drag options to blanks, or click blank then click option'
A128
BStandard
CBasic
D64
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing disk size with IP SKU values.
Using '64' for disk size when a larger size is needed.
Choosing 'Basic' when 'Standard' is required.
5fill in blank
hard

Fill all three blanks to create a VM with a custom admin username, disable password authentication, and enable boot diagnostics.

Azure
az vm create --resource-group MyResourceGroup --name MyVM --image UbuntuLTS --admin-username [1] --disable-password-authentication [2] --boot-diagnostics [3]
Drag options to blanks, or click blank then click option'
Aazureuser
Btrue
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'false' for disabling password authentication when it should be 'true'.
Forgetting to enable boot diagnostics by setting it to 'true'.
Using an invalid admin username.