0
0
Azurecloud~10 mins

Azure CLI installation and login - Interactive Code Practice

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

Complete the command to install Azure CLI on Ubuntu using apt.

Azure
sudo apt-get update && sudo apt-get install -y [1]
Drag options to blanks, or click blank then click option'
Aazurecli
Bazure
Cazcli
Dazure-cli
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'azure' instead of 'azure-cli' causes package not found error.
Using 'azcli' or 'azurecli' are incorrect package names.
2fill in blank
medium

Complete the command to log in to Azure CLI interactively.

Azure
az [1]
Drag options to blanks, or click blank then click option'
Alogin
Bsignin
Cconnect
Dauth
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'connect' or 'signin' are not valid Azure CLI commands.
Using 'auth' is not a recognized command for login.
3fill in blank
hard

Fix the error in the command to install Azure CLI on Windows using MSI installer.

Azure
Start-Process msiexec.exe -Wait -ArgumentList '/I', '[1]', '/quiet'
Drag options to blanks, or click blank then click option'
Aazure-cli.msi
BAzureCliSetup.msi
CAzureCLISetup.msi
DAzureCLI.msi
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase or incorrect casing causes file not found error.
Using 'AzureCLI.msi' or 'azure-cli.msi' are invalid file names.
4fill in blank
hard

Fill both blanks to set the Azure CLI to use a specific subscription and list resource groups.

Azure
az account [1] --subscription [2] && az group list
Drag options to blanks, or click blank then click option'
Aset
Bshow
Cdelete
Dcreate
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'show' instead of 'set' does not change the subscription.
Using 'delete' or 'create' are invalid for this context.
5fill in blank
hard

Fill all three blanks to create a resource group with Azure CLI in a specific location.

Azure
az group [1] --name [2] --location [3]
Drag options to blanks, or click blank then click option'
Acreate
BMyResourceGroup
Ceastus
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'delete' instead of 'create' will remove a resource group.
Using invalid location names causes errors.