2.9 Azure Storage Accounts and Services
Key Takeaways
- Azure Storage provides four core services: Blob Storage (objects), File Storage (SMB shares), Queue Storage (messaging), and Table Storage (NoSQL key-value).
- Storage accounts provide a unique namespace for your Azure Storage data accessible from anywhere via HTTP/HTTPS.
- Storage redundancy options range from LRS (3 copies in one data center) to GZRS (6 copies across zones and regions).
- Blob Storage access tiers (Hot, Cool, Cold, Archive) optimize cost based on how frequently data is accessed.
- Azure Data Lake Storage Gen2 combines the scalability of Blob Storage with a hierarchical file system for big data analytics.
Azure Storage Accounts and Services
Quick Answer: Azure Storage provides Blob (objects), File (SMB shares), Queue (messaging), and Table (NoSQL) services. Storage accounts have redundancy options from LRS (3 copies, 1 data center) to GZRS (6 copies, cross-zone and cross-region). Blob Storage has Hot, Cool, Cold, and Archive tiers.
Azure Storage Account
A storage account provides a unique namespace in Azure for your data. Every object you store has an address that includes your unique account name. The combination of account name and service endpoint forms a URL:
| Service | Endpoint Format |
|---|---|
| Blob | https://accountname.blob.core.windows.net |
| File | https://accountname.file.core.windows.net |
| Queue | https://accountname.queue.core.windows.net |
| Table | https://accountname.table.core.windows.net |
Storage Account Types
| Type | Supported Services | Performance | Redundancy |
|---|---|---|---|
| Standard general-purpose v2 | Blob, File, Queue, Table | Standard (HDD) | LRS, GRS, ZRS, GZRS |
| Premium block blobs | Blob only | Premium (SSD) | LRS, ZRS |
| Premium file shares | File only | Premium (SSD) | LRS, ZRS |
| Premium page blobs | Page blobs only | Premium (SSD) | LRS |
On the Exam: Standard general-purpose v2 is the recommended account type for most scenarios. It supports all storage services and all redundancy options. Only use Premium accounts when you need SSD performance.
The Four Azure Storage Services
1. Azure Blob Storage (Binary Large Objects)
Blob Storage is Azure's object storage solution, designed for storing massive amounts of unstructured data — text, binary data, images, videos, backups, logs.
Blob types:
| Type | Description | Use Case |
|---|---|---|
| Block blobs | Store text and binary data up to ~190.7 TB | Documents, images, videos |
| Append blobs | Optimized for append operations | Log files, streaming data |
| Page blobs | Store random-access files up to 8 TB | Virtual hard disks (VHDs) for VMs |
Access tiers (optimize cost by data access frequency):
| Tier | Access Frequency | Storage Cost | Access Cost | Min Storage Duration |
|---|---|---|---|---|
| Hot | Frequently accessed | Highest | Lowest | None |
| Cool | Infrequently accessed (30+ days) | Lower | Higher | 30 days |
| Cold | Rarely accessed (90+ days) | Even lower | Even higher | 90 days |
| Archive | Offline storage (180+ days) | Lowest | Highest (rehydration required) | 180 days |
On the Exam: Archive tier data is OFFLINE and must be "rehydrated" to Hot or Cool before it can be accessed. Rehydration can take hours. This is the cheapest storage option but has the highest access cost and latency.
2. Azure Files (File Shares)
Azure Files provides fully managed file shares in the cloud, accessible via the SMB (Server Message Block) and NFS (Network File System) protocols.
Key features:
- SMB and NFS — Mount file shares on Windows, macOS, and Linux just like a local network drive
- Shared access — Multiple VMs can read and write to the same file share simultaneously
- Azure File Sync — Sync on-premises Windows file servers with Azure Files for hybrid access
- Snapshots — Point-in-time read-only copies of file shares
Use cases:
- Replacing or supplementing on-premises file servers
- "Lift and shift" applications that use SMB file shares
- Shared storage for applications running across multiple VMs
- Storing configuration files, diagnostic logs, and metrics
3. Azure Queue Storage
Queue Storage provides a messaging queue for asynchronous communication between application components. Messages can be up to 64 KB in size.
Use cases:
- Decoupling application components for independent scaling
- Creating a work backlog for asynchronous processing
- Passing messages between web role and worker role in a microservices architecture
4. Azure Table Storage
Table Storage is a NoSQL key-value store for storing large amounts of structured, non-relational data.
Key features:
- Schemaless — Each entity can have different properties
- Massive scale — Store terabytes of data
- Fast — Low-latency access for key-value lookups
Note: For new NoSQL projects, Microsoft recommends Azure Cosmos DB Table API over Table Storage, as it provides higher performance, global distribution, and additional features.
Storage Redundancy Options
Azure replicates your data to protect against planned and unplanned failures. Understanding redundancy options is critical for the AZ-900:
Primary Region Redundancy
| Option | Copies | Description |
|---|---|---|
| LRS (Locally Redundant Storage) | 3 copies in ONE data center | Protects against drive/rack failures. Cheapest option. |
| ZRS (Zone-Redundant Storage) | 3 copies across THREE availability zones | Protects against data center failures within a region. |
Primary + Secondary Region Redundancy
| Option | Copies | Description |
|---|---|---|
| GRS (Geo-Redundant Storage) | 6 copies — 3 in primary + 3 in secondary region (LRS in each) | Protects against entire region failures. Secondary is read-only during failover. |
| GZRS (Geo-Zone-Redundant Storage) | 6 copies — 3 across zones in primary + 3 in secondary region | Highest redundancy. ZRS in primary + LRS in secondary. |
Read Access to Secondary Region
- RA-GRS — Read-access geo-redundant storage (read from secondary anytime)
- RA-GZRS — Read-access geo-zone-redundant storage (highest availability)
On the Exam: For maximum durability, choose RA-GZRS. For minimum cost, choose LRS. For region failure protection, choose GRS or GZRS. If the question mentions "availability zone failure," ZRS or GZRS is the answer.
Data Migration Tools
| Tool | Description | Use Case |
|---|---|---|
| Azure Migrate | Discover, assess, and migrate on-premises workloads to Azure | Full migration planning and execution |
| Azure Data Box | Physical device shipped to you for offline data transfer (up to 80 TB) | Large data transfers where network bandwidth is limited |
| Azure Data Box Heavy | Larger physical device for up to 1 PB of data | Very large offline data transfers |
| AzCopy | Command-line tool for copying data to/from Azure Storage | Scriptable data transfers |
| Azure Storage Explorer | GUI tool for managing Azure Storage data | Interactive data management |
| Azure File Sync | Sync on-premises file servers with Azure Files | Hybrid file server scenarios |
Which Blob Storage access tier has the lowest storage cost but requires rehydration before data can be accessed?
Which storage redundancy option provides the HIGHEST level of durability?
What protocol does Azure Files use that allows mounting file shares as network drives on Windows?
A company needs to transfer 60 TB of data to Azure but has limited internet bandwidth. Which tool should they use?