0
0
Azurecloud~10 mins

Azure CLI and Cloud Shell - Interactive Code Practice

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

Complete the code to list all resource groups in your Azure subscription.

Azure
az group [1]
Drag options to blanks, or click blank then click option'
Acreate
Bdelete
Clist
Dshow
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' instead of 'list' will try to make a new group.
Using 'delete' will remove resource groups, which is not intended here.
2fill in blank
medium

Complete the code to create a new Azure resource group named 'MyGroup' in the 'eastus' region.

Azure
az group create --name [1] --location eastus
Drag options to blanks, or click blank then click option'
ASampleGroup
BMyGroup
COldGroup
DTestGroup
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different group name than 'MyGroup' will create a wrong resource group.
Misspelling the group name will cause confusion later.
3fill in blank
hard

Fix the error in the command to show details of a virtual machine named 'vm1' in resource group 'MyGroup'.

Azure
az vm [1] --name vm1 --resource-group MyGroup
Drag options to blanks, or click blank then click option'
Ashow
Bdelete
Clist
Dcreate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list' will show all VMs, not a specific one.
Using 'delete' will remove the VM, which is not intended.
4fill in blank
hard

Fill both blanks to start a Cloud Shell session and select Bash as the shell type.

Azure
az cloudshell [1] --shell-type [2]
Drag options to blanks, or click blank then click option'
Alaunch
Bpowershell
Cbash
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'launch' instead of 'start' will cause an error.
Choosing 'powershell' instead of 'bash' selects the wrong shell.
5fill in blank
hard

Fill all three blanks to create a storage account named 'mystorage' in resource group 'MyGroup' with the SKU 'Standard_LRS'.

Azure
az storage account [1] --name [2] --resource-group [3] --sku Standard_LRS
Drag options to blanks, or click blank then click option'
Acreate
Bmystorage
CMyGroup
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'delete' instead of 'create' will remove storage accounts.
Mixing up the resource group and storage account names.