0
0
Azurecloud~30 mins

Storage commands in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
Storage commands
📖 Scenario: You are working as a cloud administrator for a small company. You need to manage Azure Storage resources using command-line commands. This project will guide you through creating a storage account, configuring a container, uploading a file, and setting access permissions.
🎯 Goal: Build a sequence of Azure CLI commands to create a storage account, create a blob container, upload a file to the container, and set the container's access level.
📋 What You'll Learn
Create a storage account named exactly mystorageacct123 in the eastus region
Create a blob container named exactly mycontainer inside the storage account
Upload a file named exactly example.txt to the blob container
Set the blob container's access level to blob (public read access for blobs only)
💡 Why This Matters
🌍 Real World
Managing Azure Storage resources via command line is common for automation and scripting in cloud operations.
💼 Career
Cloud administrators and DevOps engineers often use Azure CLI commands to manage storage accounts and containers efficiently.
Progress0 / 4 steps
1
Create the Azure storage account
Write the Azure CLI command to create a storage account named mystorageacct123 in the eastus region with the resource group myResourceGroup. Use the Standard_LRS SKU and StorageV2 kind.
Azure
Need a hint?

Use az storage account create with the exact parameters given.

2
Create a blob container
Write the Azure CLI command to create a blob container named mycontainer inside the storage account mystorageacct123.
Azure
Need a hint?

Use az storage container create with the exact container name and storage account.

3
Upload a file to the blob container
Write the Azure CLI command to upload a file named example.txt to the blob container mycontainer in the storage account mystorageacct123. Assume the file is in the current directory.
Azure
Need a hint?

Use az storage blob upload with the exact file and container names.

4
Set the blob container access level
Write the Azure CLI command to set the access level of the blob container mycontainer in the storage account mystorageacct123 to blob (public read access for blobs only).
Azure
Need a hint?

Use az storage container set-permission with the exact container name and access level.