0
0
Azurecloud~5 mins

Storage commands in Azure - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the Azure CLI command to create a new storage account?
Use az storage account create with parameters like --name, --resource-group, and --location to create a new storage account.
Click to reveal answer
beginner
How do you list all containers in an Azure Storage account using CLI?
Use az storage container list with the storage account name and key or connection string to list all containers.
Click to reveal answer
beginner
Which command uploads a file to an Azure Blob container?
Use az storage blob upload specifying the container name, file path, and blob name.
Click to reveal answer
intermediate
How can you generate a Shared Access Signature (SAS) token for a storage account?
Use az storage account generate-sas with permissions, expiry time, and resource types to create a SAS token.
Click to reveal answer
beginner
What command deletes a blob from a container in Azure Storage?
Use az storage blob delete with the container name and blob name to remove a blob.
Click to reveal answer
Which Azure CLI command lists all blobs in a container?
Aaz storage blob list
Baz storage container list
Caz storage account list
Daz storage blob upload
What parameter is required to specify the storage account when using Azure storage CLI commands?
A--location
B--resource-group
C--subscription
D--account-name
How do you authenticate Azure CLI storage commands without using account keys?
AUse a SAS token only
BUse a connection string only
CUse Azure Active Directory (AAD) login
DUse a storage account key only
Which command uploads a local file to Azure Blob Storage?
Aaz storage blob upload
Baz storage container create
Caz storage blob delete
Daz storage account create
What does the az storage container create command do?
ADeletes a storage account
BCreates a new container in a storage account
CLists all blobs in a container
DUploads a blob to a container
Explain how to upload a file to Azure Blob Storage using CLI commands.
Think about the command and required parameters.
You got /5 concepts.
    Describe the steps to create a new storage account and a container inside it using Azure CLI.
    Start with the storage account, then container.
    You got /3 concepts.