📖 Scenario: You are setting up cloud storage for a small business. They need a place to store files securely and access them easily.
🎯 Goal: Create an Azure Storage Account with basic settings to store and manage files.
📋 What You'll Learn
Create a resource group named myResourceGroup
Create a storage account named mystorageaccount
Set the storage account location to eastus
Use the Standard_LRS replication type
Set the account kind to StorageV2
💡 Why This Matters
🌍 Real World
Creating storage accounts is a common task to store files, backups, and data in the cloud securely and reliably.
💼 Career
Cloud engineers and administrators often create and manage storage accounts as part of infrastructure setup and maintenance.
Progress0 / 4 steps
1
Create a resource group
Write an Azure CLI command to create a resource group named myResourceGroup in the eastus location.
Azure
Hint
Use az group create with --name and --location options.
2
Set storage account name and location variables
Create two variables in Bash: storageAccountName set to mystorageaccount and location set to eastus.
Azure
Hint
Use variable=value syntax in Bash.
3
Create the storage account
Write an Azure CLI command to create a storage account using the variables storageAccountName and location. Use resource group myResourceGroup, account kind StorageV2, and replication Standard_LRS.
Azure
Hint
Use az storage account create with the correct flags and variables.
4
Verify the storage account creation
Write an Azure CLI command to show the details of the storage account named mystorageaccount in resource group myResourceGroup.
Azure
Hint
Use az storage account show with --name and --resource-group.
Practice
(1/5)
1. What is the main purpose of an Azure Storage Account?
easy
A. To store and manage data in the cloud
B. To run virtual machines
C. To host websites
D. To monitor network traffic
Solution
Step 1: Understand the role of a storage account
An Azure Storage Account is designed to hold data like files, blobs, and tables securely in the cloud.
Step 2: Compare with other Azure services
Running virtual machines, hosting websites, and monitoring network traffic are handled by other Azure services, not storage accounts.
Final Answer:
To store and manage data in the cloud -> Option A
Quick Check:
Storage account = cloud data storage [OK]
Hint: Storage account = cloud folder for data [OK]
Common Mistakes:
Confusing storage account with virtual machines
Thinking storage account hosts websites
Mixing storage with monitoring services
2. Which Azure CLI command correctly creates a storage account named mystorage123 in resource group mygroup located in eastus with SKU Standard_LRS and kind StorageV2?
easy
A. az storage account new --name mystorage123 --resource-group mygroup --location eastus --sku Standard_LRS --kind StorageV2
B. az storage create --account-name mystorage123 --group mygroup --region eastus --sku Standard_LRS --type StorageV2
C. az storage account create --name mystorage123 --resource-group mygroup --location eastus --sku Standard_LRS --kind StorageV2
D. az create storage account --name mystorage123 --resource-group mygroup --location eastus --sku Standard_LRS --kind StorageV2
Solution
Step 1: Identify the correct Azure CLI command syntax
The correct command to create a storage account is az storage account create with parameters for name, resource group, location, SKU, and kind.
Step 2: Check parameter names and values
az storage account create --name mystorage123 --resource-group mygroup --location eastus --sku Standard_LRS --kind StorageV2 uses the correct parameter names and values matching Azure CLI documentation.
Final Answer:
az storage account create --name mystorage123 --resource-group mygroup --location eastus --sku Standard_LRS --kind StorageV2 -> Option C
But you get an error saying the name is already taken. What should you do to fix this?
medium
A. Change the storage account name to a unique one
B. Change the resource group name
C. Change the location to another region
D. Change the SKU to Premium_LRS
Solution
Step 1: Understand storage account name uniqueness
Storage account names must be globally unique across Azure.
Step 2: Identify the cause of the error
The error indicates the chosen name is already used by someone else.
Step 3: Fix by changing the name
Changing the name to a unique one resolves the conflict and allows creation.
Final Answer:
Change the storage account name to a unique one -> Option A
Quick Check:
Unique name needed = Change the storage account name to a unique one [OK]
Hint: Storage account names must be unique globally [OK]
Common Mistakes:
Changing resource group instead of name
Changing location or SKU won't fix name conflict
Ignoring error details about name uniqueness
5. You want to create a storage account optimized for storing large amounts of unstructured data with high durability and geo-redundancy. Which combination of SKU and kind should you choose?
hard
A. SKU: Premium_LRS, Kind: BlobStorage
B. SKU: Standard_GRS, Kind: StorageV2
C. SKU: Standard_LRS, Kind: FileStorage
D. SKU: Standard_ZRS, Kind: StorageV1
Solution
Step 1: Identify requirements for unstructured data and durability
StorageV2 kind supports blobs and unstructured data with advanced features.
Step 2: Choose SKU with geo-redundancy
Standard_GRS provides geo-redundant storage for high durability across regions.
Step 3: Match SKU and kind
Standard_GRS with StorageV2 is the best fit for large unstructured data with geo-redundancy.
Final Answer:
SKU: Standard_GRS, Kind: StorageV2 -> Option B
Quick Check:
Geo-redundant + unstructured data = SKU: Standard_GRS, Kind: StorageV2 [OK]
Hint: Use Standard_GRS SKU with StorageV2 kind for geo-redundant blobs [OK]
Common Mistakes:
Choosing Premium SKU without geo-redundancy
Using FileStorage kind for blobs
Selecting StorageV1 which is legacy
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.