HSR Sector 6 · Bangalore +91 96110 27980 Mon–Sat · 09:30–20:30
Chapter 4 of 20 — Azure Cloud Fundamentals
beginner Chapter 4 of 20

Azure Storage — Blobs, Files, Queues & Tables Explained

By Vikas Swami, CCIE #22239 | Updated Mar 2026 | Free Course

Azure Storage Accounts — Types, Replication & Access Tiers

Azure storage services are the backbone of cloud-based data management, providing scalable, durable, and highly available storage options. At the core of these services are Azure storage accounts, which act as containers for all your storage resources such as blobs, files, queues, and tables. Selecting the appropriate storage account type, understanding replication strategies, and configuring access tiers are critical steps in designing an efficient and cost-effective cloud storage solution.

Types of Azure Storage Accounts

Azure offers several storage account types, each optimized for different workloads and performance requirements:

  • General-purpose v2 (GPv2): The most versatile and widely used type, supporting all Azure storage services with access to features like hot, cool, and archive tiers. Ideal for most applications requiring scalability and feature richness.
  • General-purpose v1 (GPv1): Older storage accounts supporting classic features, with lower costs but limited capabilities compared to GPv2. Recommended only if legacy compatibility is needed.
  • Blob storage accounts: Specialized for blob storage, offering additional features like lifecycle management and tiering, optimized for large-scale object storage.
  • Premium block blobs: Designed for IO-intensive workloads requiring low latency, such as virtual machine disks or high-performance applications.

Replication Strategies for High Availability

Data durability and availability are paramount in cloud storage. Azure provides several replication options:

Replication Type Description Use Cases
LRS (Locally Redundant Storage) Replicates data synchronously three times within a single data center in the same region. Cost-effective for workloads where regional redundancy isn't critical.
ZRS (Zone-Redundant Storage) Replicates data synchronously across three Azure availability zones within a region. Provides higher durability and availability in zone-failure scenarios.
GRS (Geo-Redundant Storage) Asynchronously replicates data to a secondary region hundreds of miles away. Suitable for disaster recovery and compliance requirements.
RA-GRS (Read-Access GRS) Provides read access to the secondary region, in addition to GRS features. Allows read-only access during primary region outages.

Access Tiers for Cost Management

Azure storage accounts support different access tiers to optimize costs based on data usage patterns:

  • Hot Tier: Optimized for frequently accessed data. Provides low latency and high throughput but at a higher storage cost.
  • Cool Tier: Suitable for infrequently accessed data that requires cost-effective storage. Slightly higher access latency.
  • Archive Tier: Designed for rarely accessed data with flexible latency requirements. Offers the lowest storage cost but requires rehydration before access.

Choosing the right access tier depends on your data access patterns, cost considerations, and compliance needs. For instance, backups and archives are ideal candidates for cool and archive tiers, respectively. Properly managing these tiers ensures optimal balance between cost and performance.

Blob Storage — Block Blobs, Append Blobs & Page Blobs

Azure Blob storage is a highly scalable object storage service for unstructured data such as images, videos, logs, and backups. It supports three main types of blobs: block blobs, append blobs, and page blobs, each tailored for different use cases.

Block Blobs

Block blobs are optimized for uploading large files efficiently. They consist of blocks, each identified by a block ID. During upload, blocks are uploaded independently and then committed to form a complete blob. This approach allows for parallel uploads and resuming interrupted uploads.

az storage blob upload --container-name mycontainer --name largefile.zip --file ./largefile.zip --account-name mystorageaccount

Use case: Storing media files, backups, or any large data objects.

Append Blobs

Append blobs are designed for scenarios where data is continually appended, such as logging or audit trails. They support appending data efficiently without modifying existing content.

az storage blob append --container-name logs --name app.log --file ./app.log --account-name mystorageaccount

Use case: Real-time logging, telemetry data, or audit records.

Page Blobs

Page blobs are optimized for random read/write operations and are primarily used as disks for Azure Virtual Machines. They are divided into 512-byte pages that can be updated independently.

az disk create --resource-group myResourceGroup --name myOSDisk --size-gb 128 --sku Premium_LRS --location eastus

Use case: Virtual machine disks requiring low latency and high IOPS.

Azure Files — Managed File Shares with SMB and NFS

Azure Files provides fully managed file shares accessible via standard SMB and NFS protocols. It allows applications to share files across multiple virtual machines or on-premises environments seamlessly.

Features and Use Cases

  • Shared storage for lift-and-shift migrations of legacy applications.
  • Hosting shared applications and content that require SMB/NFS access.
  • Hybrid cloud scenarios with Azure File Sync, enabling caching and sync with on-premises servers.

Supported Protocols

  • SMB 3.0: For Windows-based applications requiring full SMB support.
  • NFS 4.1: For Linux-based workloads needing NFS support.

Configuring Azure Files

To create a file share, use Azure CLI:

az storage share create --name myshare --account-name mystorageaccount

Mount the share on Windows:

net use Z: \\.file.core.windows.net\ /user:Azure\ 

On Linux:

sudo mount -t cifs //.file.core.windows.net/ /mnt/myshare -o vers=3.0,username=,password=,dir_mode=0777,file_mode=0777

Queue Storage — Decoupling Applications with Message Queues

Azure Queue storage offers a simple, scalable message queuing mechanism that enables decoupling of application components, thus enhancing reliability and scalability. It is designed for asynchronous messaging, where components operate independently and communicate via message passing.

Key Features

  • Supports millions of messages in a single queue.
  • Messages can be up to 64 KB in size.
  • Provides message expiration and invisibility timeout options.
  • Supports REST API, SDKs, and CLI for integration.

Application Scenarios

  • Order processing systems where order submission and fulfillment are decoupled.
  • Task scheduling and background processing.
  • Load leveling for high-volume applications.

Implementing Queue Storage

Creating and managing queues with Azure CLI:

az storage queue create --name myqueue --account-name mystorageaccount

Adding messages:

az storage message put --queue-name myqueue --content "New Order #12345" --account-name mystorageaccount

Processing messages:

az storage message get --queue-name myqueue --account-name mystorageaccount

Table Storage — NoSQL Key-Value Store for Structured Data

Azure Table storage is a NoSQL key-value storage service optimized for storing large amounts of structured, non-relational data. It offers a schemaless design, enabling flexible data models suitable for various applications like user profiles, device states, or catalog information.

Features and Benefits

  • Partitioning for scalability and performance.
  • Supports billions of entities within a single account.
  • Simple REST API and SDK support.
  • Cost-effective for large-scale data storage with predictable pricing.

Data Model and Design

Each entity in a table has a unique combination of PartitionKey and RowKey. PartitionKey groups related entities, enabling efficient queries and scalability. RowKey uniquely identifies entities within a partition.

az storage table create --name mytable --account-name mystorageaccount

Adding an entity example:

{
  "PartitionKey": "users",
  "RowKey": "user123",
  "Name": "John Doe",
  "Email": "john.doe@example.com"
}

Comparison: Blob Storage vs. Table Storage

Feature Blob Storage Table Storage
Data Type Unstructured (files, images, videos) Structured, NoSQL key-value pairs
Use Cases Media storage, backups, large objects User profiles, device states, catalogs
Access Pattern Sequential or random access via HTTP APIs Key-based lookups with partitioning
Pricing Based on data volume and access tiers Based on number of entities and storage used

Storage Security — Shared Access Signatures, Encryption & Firewalls

Securing data in Azure storage services is essential. Azure provides multiple security features to control access and protect data at rest and in transit.

Shared Access Signatures (SAS)

SAS tokens grant limited permissions to storage resources without exposing account keys. They specify allowed operations, expiry times, and IP ranges, enabling secure delegation of access.

az storage message generate-sas --queue-name myqueue --permissions rlu --expiry 2024-12-31 --account-name mystorageaccount --https-only

Encryption

  • Encryption at Rest: Azure encrypts stored data using Microsoft-managed keys by default. Customer-managed keys can be used for additional control.
  • Encryption in Transit: All data transmitted between clients and Azure storage services is secured via HTTPS.

Firewall and Virtual Network Rules

Restrict access to storage accounts by configuring IP-based firewalls or integrating with Azure Virtual Networks. This limits exposure to unauthorized traffic.

az storage account update --name mystorageaccount --default-action Deny

Data Lifecycle Management — Hot, Cool & Archive Tiers

Proper management of data lifecycle ensures cost efficiency and compliance. Azure storage services support lifecycle policies that automatically transition data between access tiers based on specified rules.

Lifecycle Policies

  • Define rules to move data from hot to cool or archive tiers after a certain period of inactivity.
  • Automate deletion or transition, reducing manual overhead.

Example Policy

{
  "rules": [
    {
      "name": "MoveToCool",
      "type": "Lifecycle",
      "definition": {
        "filters": {
          "blobTypes": ["blockBlob"]
        },
        "actions": {
          "baseBlob": {
            "tierToCool": {
              "daysAfterModificationGreaterThan": 30
            }
          }
        }
      }
    }
  ]
}

Implementing such policies helps organizations optimize storage costs while maintaining data accessibility as per compliance standards.

Hands-On — Uploading Files and Configuring Access Policies

Practical experience is crucial. Below are steps for uploading files, setting access policies, and managing storage resources:

Uploading Files to Blob Storage

az storage blob upload --container-name mycontainer --file ./photo.jpg --name photo.jpg --account-name mystorageaccount

Alternatively, using Azure Storage Explorer provides a GUI for managing blobs, files, and tables efficiently.

Configuring Access Policies and Shared Access Signatures

  1. Create a stored access policy:
az storage container policy create --name mypolicy --permissions rwdl --expiry 2024-12-31 --container-name mycontainer --account-name mystorageaccount
  • Generate a SAS token based on the policy:
  • az storage container generate-sas --name mycontainer --policy-name mypolicy --permissions r --expiry 2024-12-31 --account-name mystorageaccount --https-only
  • Use the SAS URL to provide secure access to clients or applications.
  • Key Takeaways

    • Azure storage services encompass blobs, files, queues, and tables, each suited for different data types and application needs.
    • Choosing the right Azure storage account type and replication strategy ensures high availability, durability, and cost efficiency.
    • Blob storage supports block, append, and page blobs, catering to diverse use cases like large file storage, logging, and VM disks.
    • Azure Files enables managed file shares accessible via SMB and NFS, supporting hybrid and cloud-native applications.
    • Queue storage facilitates decoupling of application components through reliable message queuing.
    • Table storage offers a scalable NoSQL solution for structured, non-relational data with flexible schema design.
    • Security features such as Shared Access Signatures, encryption, and firewalls protect data effectively.

    Frequently Asked Questions

    What are the main differences between Azure Blob storage and Azure Files?

    Azure Blob storage is designed for unstructured data such as images, videos, and backups, accessed via REST APIs, and optimized for large-scale object storage. Azure Files, on the other hand, provides managed SMB and NFS file shares, allowing multiple virtual machines or on-premises servers to access shared files seamlessly using standard file protocols. Blob storage supports block, append, and page blobs, whereas Azure Files supports SMB and NFS protocols for file sharing. The choice depends on whether your application needs REST-based object storage or traditional file share access.

    How does Azure ensure data durability and what are the available replication options?

    Azure guarantees data durability through multiple replication strategies. Locally Redundant Storage (LRS) replicates data synchronously within a single data center. Zone-Redundant Storage (ZRS) replicates data synchronously across multiple availability zones within a region for higher resilience. Geo-Redundant Storage (GRS) asynchronously replicates data to a secondary region hundreds of miles away, providing disaster recovery capabilities. Read-Access GRS (RA-GRS) adds read access to the secondary region during outages. Selecting the appropriate replication depends on your business continuity requirements and budget considerations.

    What are the benefits of using lifecycle management policies in Azure storage?

    Lifecycle management policies automate the transition of data between access tiers — hot, cool, and archive — based on specified rules. This automation helps optimize costs by moving infrequently accessed data to cheaper tiers while keeping frequently accessed data in hot storage. Policies can also automate data deletion when no longer needed, ensuring compliance and reducing manual management overhead. Implementing lifecycle policies ensures efficient storage utilization, cost savings, and simplified data governance across your Azure storage solutions.

    Ready to Master Azure Cloud Fundamentals?

    Join 45,000+ students at Networkers Home. CCIE-certified trainers, 24x7 real lab access, and 100% placement support.

    Explore Course