0
0
Azurecloud~10 mins

Storage commands 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 list all storage accounts in your Azure subscription.

Azure
az storage account [1]
Drag options to blanks, or click blank then click option'
Alist
Bcreate
Cdelete
Dshow
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' instead of 'list' will try to make a new account.
Using 'show' expects a specific account name, not a list.
2fill in blank
medium

Complete the code to create a new blob container named 'mycontainer' in a storage account.

Azure
az storage container [1] --name mycontainer --account-name mystorageaccount
Drag options to blanks, or click blank then click option'
Alist
Bcreate
Cshow
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list' will show containers but not create one.
Using 'delete' will remove a container, not create it.
3fill in blank
hard

Fix the error in the command to upload a file named 'data.txt' to a blob container.

Azure
az storage blob upload --container-name mycontainer --file data.txt --name [1] --account-name mystorageaccount
Drag options to blanks, or click blank then click option'
Amycontainer
Bdata
Cupload
Ddata.txt
Attempts:
3 left
💡 Hint
Common Mistakes
Using just 'data' misses the file extension.
Using 'mycontainer' is incorrect because it's the container name, not blob name.
4fill in blank
hard

Fill both blanks to download a blob named 'report.pdf' from a container to a local file.

Azure
az storage blob download --container-name [1] --name [2] --file localreport.pdf --account-name mystorageaccount
Drag options to blanks, or click blank then click option'
Areports
Breport.pdf
Cmycontainer
Ddata.txt
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping container and blob names causes errors.
Using a wrong blob name downloads the wrong file or fails.
5fill in blank
hard

Fill all three blanks to delete a storage account named 'mystorageaccount' in resource group 'mygroup'.

Azure
az storage account [1] --name [2] --resource-group [3]
Drag options to blanks, or click blank then click option'
Acreate
Bdelete
Cmygroup
Dmystorageaccount
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' instead of 'delete' will try to make a new account.
Swapping resource group and account names causes errors.