Azure Storage Accounts

Every application needs a place to store data — files, images, backups, logs, or database records. Azure Storage is the cloud storage solution from Microsoft that provides highly available, secure, durable, and massively scalable storage. An Azure Storage Account is the container that holds all Azure storage services together under one roof.

What is an Azure Storage Account?

An Azure Storage Account is an Azure resource that provides access to the Azure Storage services. When a storage account is created, it gets a globally unique name that forms the base URL for accessing data stored within it.

All data in an Azure Storage Account is encrypted at rest automatically using Microsoft-managed keys. Data is also replicated for durability — even the cheapest redundancy option keeps three copies of data in the same data center.

Storage Account URL Structure

  Storage Account Name: mystorageaccount

  Blob Storage URL:    https://mystorageaccount.blob.core.windows.net
  File Storage URL:    https://mystorageaccount.file.core.windows.net
  Queue Storage URL:   https://mystorageaccount.queue.core.windows.net
  Table Storage URL:   https://mystorageaccount.table.core.windows.net

Azure Storage Services

One storage account can provide access to four distinct storage services:

Diagram – Storage Account and Its Services

  ┌────────────────────────────────────────────────────┐
  │           Azure Storage Account                    │
  │                                                    │
  │  ┌──────────────┐  ┌──────────────────────────┐    │
  │  │  Blob Storage│  │      File Storage        │    │
  │  │  (Objects/   │  │  (Managed File Shares /  │    │
  │  │   Files)     │  │   SMB / NFS Protocol)    │    │
  │  └──────────────┘  └──────────────────────────┘    │
  │                                                    │
  │  ┌──────────────┐  ┌──────────────────────────┐    │
  │  │Queue Storage │  │     Table Storage        │    │
  │  │(Message Queue│  │  (NoSQL key-value store) │    │
  │  │ for async    │  │                          │    │
  │  │ processing)  │  │                          │    │
  │  └──────────────┘  └──────────────────────────┘    │
  └────────────────────────────────────────────────────┘
ServiceData TypeBest For
Blob StorageUnstructured data: images, videos, backups, documentsStatic website content, media streaming, data lake storage
File StorageFile shares accessible over SMB or NFS protocolShared drives for VMs, lift-and-shift of on-premises file servers
Queue StorageMessages up to 64 KB eachDecoupling application components, async task processing
Table StorageKey-value data with flexible schemaStoring IoT sensor data, user sessions, lookup tables

Storage Account Types

Account TypeServices SupportedPerformanceBest For
Standard general-purpose v2 (GPv2)Blob, File, Queue, TableStandard (HDD)Most use cases — the default and recommended type
Premium Block BlobsBlock Blob onlyPremium (SSD)AI/ML workloads, analytics, high-transaction scenarios
Premium File SharesFile onlyPremium (SSD)Enterprise file applications requiring low latency
Premium Page BlobsPage Blob onlyPremium (SSD)Virtual machine disks (VHD files)

Storage Redundancy Options

Azure automatically replicates stored data to protect against hardware failures, power outages, and natural disasters. The level of replication is controlled by the redundancy option chosen at the time of account creation.

RedundancyCopiesWhere ReplicatedProtects Against
LRS (Locally Redundant Storage)3Same data center (single building)Drive and rack failures
ZRS (Zone Redundant Storage)3Three availability zones in same regionData center failures within a region
GRS (Geo Redundant Storage)63 copies in primary region + 3 copies in paired regionRegional disasters and outages
GZRS (Geo Zone Redundant Storage)63 across zones in primary region + 3 in paired regionZone + regional failures (highest durability)
RA-GRS6Same as GRS but secondary copy is readableRegional outages with read availability during failure

Diagram – GRS Replication

  Primary Region: East US
  ┌────────────────────────────────┐
  │  LRS: 3 copies within one      │
  │  data center (rack A, B, C)    │
  └───────────────┬────────────────┘
                  │
                  │  Async replication
                  ▼
  Secondary Region: West US (paired)
  ┌────────────────────────────────┐
  │  LRS: 3 copies within one      │
  │  data center (read-only)       │
  └────────────────────────────────┘

Storage Account Security

Access Keys

Every storage account has two 512-bit access keys that grant full access to all data. These keys should be stored securely in Azure Key Vault and rotated regularly.

Shared Access Signatures (SAS)

A SAS token is a URL string that grants limited, time-bound access to specific storage resources. Instead of sharing the full access key, a SAS token can be generated to allow a specific operation (like reading one file) that expires after a set time.

Example: SAS URL for a Blob

  https://mystorageaccount.blob.core.windows.net/photos/image1.jpg
  ?sv=2023-01-03
  &st=2024-01-01T00:00:00Z       ← Start time
  &se=2024-01-02T00:00:00Z       ← Expiry time (24 hours)
  &sr=b                          ← Resource type: blob
  &sp=r                          ← Permission: read only
  &sig=AbCdEf...                 ← Cryptographic signature

Storage Firewall and Virtual Network Rules

By default, a storage account accepts connections from all networks. The storage firewall can restrict access to specific IP ranges or specific Azure VNets, preventing unauthorized access from the public internet.

Storage Access Tiers (Blob Storage)

Blob Storage offers different access tiers to optimize cost based on how frequently data is accessed:

TierAccess FrequencyStorage CostAccess CostBest For
HotFrequently accessedHigherLowerActive website content, frequently updated files
CoolInfrequently accessed (30+ days)LowerHigherBackups, disaster recovery, older media files
ColdRarely accessed (90+ days)Even LowerHigherLong-term archives accessed occasionally
ArchiveVery rarely accessed (180+ days)LowestHighest + rehydration timeCompliance archives, legal records, raw data backups

Key Takeaways

  • An Azure Storage Account is the top-level container that provides access to Blob, File, Queue, and Table storage services.
  • General-purpose v2 (GPv2) is the default and most widely used storage account type.
  • Redundancy options range from LRS (single data center, 3 copies) to GZRS (zone + geo redundant, 6 copies).
  • Access keys provide full access; SAS tokens provide limited, time-bound access for secure data sharing.
  • Blob access tiers (Hot, Cool, Cold, Archive) allow cost optimization based on how often data is accessed.

Leave a Comment