0
0
Azurecloud~10 mins

VM images and marketplace in Azure - Interactive Code Practice

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

Complete the code to specify the VM image publisher when creating a VM in Azure CLI.

Azure
az vm create --resource-group myResourceGroup --name myVM --image [1] --admin-username azureuser
Drag options to blanks, or click blank then click option'
ARedHat
BCanonical
CDebian
DMicrosoftWindowsServer
Attempts:
3 left
💡 Hint
Common Mistakes
Using a Windows publisher name when expecting a Linux image.
Confusing the publisher with the offer name.
2fill in blank
medium

Complete the code to specify the VM image offer when creating a VM in Azure CLI.

Azure
az vm create --resource-group myResourceGroup --name myVM --image Canonical:[1]:18.04-LTS:latest --admin-username azureuser
Drag options to blanks, or click blank then click option'
AUbuntuServer
BServer
C18.04.202304050
D18.04-LTS
Attempts:
3 left
💡 Hint
Common Mistakes
Using version numbers as the offer name.
Using generic terms like 'Server' without the OS name.
3fill in blank
hard

Fix the error in the Azure CLI command to list all VM images from the marketplace for Ubuntu.

Azure
az vm image list --publisher Canonical --offer [1] --all --output table
Drag options to blanks, or click blank then click option'
AUbuntuServer
BUbuntu
CUbuntu-LTS
DUbuntuImage
Attempts:
3 left
💡 Hint
Common Mistakes
Using incomplete or incorrect offer names.
Confusing offer with publisher.
4fill in blank
hard

Fill both blanks to create a VM using the latest Ubuntu 20.04 LTS image from the marketplace.

Azure
az vm create --resource-group myResourceGroup --name myVM --image [1]:[2]:20.04-LTS:latest --admin-username azureuser
Drag options to blanks, or click blank then click option'
ACanonical
BUbuntuServer
CMicrosoftWindowsServer
DWindowsServer
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing Windows publishers or offers with Linux images.
Using incorrect offer names.
5fill in blank
hard

Fill all three blanks to list all available VM images for Windows Server 2019 Datacenter in Azure CLI.

Azure
az vm image list --publisher [1] --offer [2] --sku [3] --all --output table
Drag options to blanks, or click blank then click option'
AMicrosoftWindowsServer
BWindowsServer
C2019-Datacenter
DWindows2019
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect SKU names.
Confusing offer and publisher names.