Overview

5 Storage

Data is presented as the third pillar of cloud computing, and the chapter explains how Azure Storage underpins nearly every Azure service. It emphasizes that picking the right storage option is critical to performance, resiliency, and cost, and introduces storage accounts as logical containers that can host multiple services at once. Readers learn about redundancy options (from locally redundant to geo-zone-redundant with optional read access), the difference between Standard and Premium offerings, and how storage type is determined by a combination of “kind” and SKU. Practical guidance includes naming constraints, public endpoints, access configuration, and cost levers such as access tiers, with all resources manageable through the Azure portal or PowerShell.

The chapter then details each core service. Blob storage supports virtually any data, organized into containers with configurable public access and optimized via hot, cool, and archive tiers; it also outlines the three blob types (block, append, and page) for different workloads. Azure Files provides a managed, SMB-like file share that can be mounted by VMs, with tiers (TransactionOptimized, Hot, Cool, Premium) balancing transaction versus capacity costs; Premium uses SSDs and provisioned billing, while non-premium tiers bill by usage. Guidance covers large file shares, their redundancy trade-offs, and secure endpoints. Throughout, the Banning Books scenario demonstrates creating accounts and resources, setting permissions, and selecting tiers to meet availability and budget goals.

Queue storage is presented as a lightweight, massively scalable message store that enables loose coupling and burst absorption: producers enqueue small messages while consumers process them asynchronously in order, improving resilience and throughput smoothing. Table storage offers schema-less, key/value entities organized by partition and row keys for fast, inexpensive lookups—ideal for simple, high-scale datasets like catalogs. Finally, the chapter distinguishes managed disks—durable, highly available VM-attached storage without public endpoints—from the four data-plane services, noting benefits like replication, availability zones, and backup support. Together, these services form a toolbox for safely persisting data, optimizing cost and latency, and cleanly integrating applications and infrastructure on Azure.

Different data purposes requires different data storages.
The four types of storage that can live inside a storage account.
Output in the PowerShell command prompt when creating a storage account (edited for clarity).
The blob section of a storage account, which is the most versatile.
The access tier is set by default to “hot” when creating a storage account.
A storage account can have an unlimited number of blob service containers.
Blobs are in a container, which are in a storage account. Blobs can be anything in a binary format.
A blob in the blob container on the storage account.
The anatomy of a PowerShell pipeline command.
File share in a storage account with folders.
HDD vs. SSD storage properties.
Queue storage with messages coming in one end and out the other end, in order.
using an Azure storage queue for holding orders without overwhelming the order processing.
The queue details are displayed in PowerShell.
Multiple tables inside table storage.
The entity, property, and key/value pairs of a table in table storage.
The benefits of each type of Azure storage.

Summary

  • A storage account is one of the three main pillars in infrastructure-as-a-service (IaaS) services on Azure, along with virtual machines and networking.
  • Each storage account will have a defined redundancy, which can be local, geo, zone or geo-zone.
  • A single storage account can hold all four types of data storage at the same time, which makes it simpler to logically separate data storages by project, client or department.
  • Each storage account has a unique URI that identifies access to it either from within Azure or the Internet if the permissions allow.
  • Blob storage can hold any kind of data objects, up to 190.7 TiB in size for block blobs.
  • File shares are like a traditional file system and is excellent as a detached centralised storage.
  • Queue storage can hold millions of messages while each message is processed one at the time.
  • Table storage is a schema-less super-fast way of storing data in logical tables. Each table consists of entities, properties and key/value pairs
  • Each entity in a table in table storage has a unique identifier made up of the partition key and the row key.
  • Storage accounts can be created in different performance tiers, with Premium using solid-state storage for low-latency workloads.
  • Blob containers organise blobs into logical groupings, making management and access control easier.
  • Cool access tier is optimised for infrequently accessed data, reducing storage costs while maintaining reasonable retrieval times.
  • Archive tier provides the lowest-cost storage for rarely accessed data, requiring rehydration before retrieval.
  • Azure Files supports both SMB and NFS protocols, enabling cross-platform file sharing from the cloud.
  • Azure File Sync allows on-premises Windows Server file shares to be cached and synchronized with Azure Files.
  • Queue storage enables asynchronous communication between application components using a simple messaging model.
  • Table storage provides a NoSQL key/attribute store for structured, non-relational data.
  • Managed disks simplify virtual machine storage management by handling availability, scalability, and performance configuration automatically.
  • Shared Access Signatures (SAS) allow time-limited, permission-scoped access to storage resources without exposing account keys.

FAQ

What is an Azure Storage account and what services can it host?An Azure Storage account is a logical container that groups multiple storage services under one billing, security, and management boundary. A single account can host four core services at once: - Blob storage: for unstructured objects (files, media, backups) - File shares: SMB/NFS shares managed by Azure - Queues: lightweight, persistent message queues - Tables: schema-less, key/value NoSQL store Naming and endpoints: - The account name must be lowercase and globally unique. - Public endpoints follow: https://<account>.<service>.core.windows.net (for example, blob, file, queue, table). - Resources (containers, shares, tables, queues) extend the path portion of the URL.
Which data redundancy option should I choose (LRS, ZRS, GRS, GZRS, RAGRS, RAGZRS)?Choose based on durability, failover scope, and read-access needs: - LRS (Locally redundant): 3 copies within one datacenter. Lowest cost; baseline durability. - ZRS (Zone-redundant): 3 copies across different availability zones in one region. Resilient to zonal failure. - GRS (Geo-redundant): LRS in primary plus asynchronous copy to paired region (total 6 copies). For regional disasters. - RAGRS (Read-access GRS): Same as GRS, plus read access to the secondary. - GZRS (Geo-zone-redundant): ZRS in primary plus copy to paired region. - RAGZRS (Read-access GZRS): GZRS plus read access to the secondary. Notes: - Standard accounts support all redundancy options. - Premium accounts support LRS and ZRS (geo options are limited).
When should I use Standard vs Premium storage accounts?Consider performance, cost model, and supported services: - Supported services: - Standard: Blob, File, Queue, Table - Premium: Blob and File (premium page blobs also available) - Performance and SLAs: - Standard: Best-effort performance on shared hardware - Premium: Low latency and performance targets on SSD-backed hardware - Pricing: - Standard: Pay for capacity used (+ transactions) - Premium: Pay for provisioned capacity, whether fully used or not - Redundancy: - Standard: LRS/ZRS/GRS/RAGRS/GZRS/RAGZRS - Premium: LRS/ZRS
What are Blob access tiers (Hot, Cool, Archive) and when should I use each?Match access patterns to cost and latency: - Hot: Frequent access and low-latency retrieval (for active content and user-facing workloads). - Cool: Infrequent access; slightly higher transaction costs but lower storage cost than Hot (good for larger, seldom used files). - Archive: Offline, very low storage cost; hours to rehydrate; ideal for long-term retention, legal/compliance data, rarely accessed backups.
How do Blob containers and public access settings work?Containers organize blobs and control access: - Access settings: - Off: No anonymous access; only authorized principals can read. - Blob: Anonymous users can read blobs if they know the URL; container listing is blocked. - Container: Anonymous users can list the container and read blobs. Best practices: - Default to Off; enable anonymous access only for intentional public content (e.g., public assets).
What types of blobs exist, and which scenarios fit each?Blob types and typical uses: - Block blobs: General-purpose files (text/binary), large objects up to ~190.7 TiB; standard for uploads, media, backups. - Append blobs: Optimized for append-only patterns (e.g., logs). Each append adds a new block; limits apply to block size and append operations. - Page blobs: Random read/write in 512-byte pages; used for VM disks and workloads needing frequent I/O.
How do Azure Files tiers compare, and how is Premium billed? What about large file shares?Azure Files access tiers (Standard hardware unless stated): - TransactionOptimized: Lower transaction cost; higher per-GB storage cost; good for frequent ops without low-latency needs. - Hot: Slightly higher transaction cost vs TransactionOptimized; lower storage cost. - Cool: Lowest storage cost; highest transaction cost; best for infrequent access. - Premium (SSD-backed): Lowest latency and highest throughput; billed by provisioned capacity (you pay for what you allocate, not what you use). Large file shares: - Standard (non-premium) can be enabled up to 5–100 TiB per share via “large file share.” This restricts redundancy to LRS or ZRS and is not reversible. - Premium shares support up to 100 TiB natively.
Why use Azure Queue storage, and how does it work?Use cases and behavior: - Purpose: Buffer and decouple producers from consumers, smooth spikes, and enable asynchronous processing. - Model: Producers enqueue up to 64 KB messages; consumers dequeue from the front in order. - Scale: Store millions of messages (bounded by the account’s capacity). - Reliability: If processing fails, the message becomes visible again; it isn’t removed until explicitly deleted.
What is Azure Table storage and how do I model data?Key characteristics: - Schema-less NoSQL: Each entity (row) can have its own set of properties (key/value pairs). - Keys: PartitionKey + RowKey form the primary key and drive scalability, distribution, and fast lookups. - Limits: Up to hundreds of properties per entity (Azure reserves a few), and about 1 MB per entity. - When to use: Ultra-fast, low-cost lookups and simple structured data without rich relational features.
How do managed disks differ from other Azure storage services?Managed disks are block storage volumes for VMs: - Access: No public HTTP endpoint; attached directly to VMs as OS or data disks. - Durability and availability: Multiple replicas with high availability targets; integrate with availability sets and zones. - Scale: Up to tens of thousands of disks per subscription; works with VM scale sets. - Persistence: Data persists independently of VM lifecycle (e.g., VM stopped).

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Microsoft Azure in Action ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Microsoft Azure in Action ebook for free
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Microsoft Azure in Action ebook for free