Skip to the content.

Azure Storage

This is not an exhaustive documentation of all the existing Azure Services. These are summarized notes for the Azure Certifications.
To see the complete documentation, please go to: Azure documentation

Benefits of Azure Storage

Durability and Availability

Security and Access Control

Scalability and Accessibility

Core Azure Storage Services

Azure Blobs

Azure Managed Disks

Azure Files

Azure Queue Storage

Azure Table Storage

Back to the top

Storage Account types

  1. General-Purpose V2 Account
    • Basic storage account suitable for hosting blobs, files, queues, and tables.
    • Recommended for most scenarios requiring Azure storage.
  2. General-Purpose V1 Account
    • Legacy account hosting blobs, files, queues, and tables.
    • Similar functionality to V2 accounts, but Microsoft recommends using V2 for future-proofing.
  3. Block Blob Storage Account
    • Offers premium performance for block blobs and append blobs.
    • Ideal for high transaction rates and scenarios requiring low storage latency.
  4. File Storage Account
    • Exclusive files-only storage account.
    • Recommended for enterprise and high-performing applications.
  5. Blob Storage Account
    • Legacy account used for blob-only storage.
    • Microsoft recommends using general-purpose V2 accounts instead.

Back to the top

Key Features

Important Points

Detailed information on the different storage accounts available at: https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview.

Back to the top

Azure Blob Storage

Azure Blob storage is an object storage solution designed for storing massive amounts of unstructured data, including text and binary data.

Blob data stands for Binary Large Object data. Blob data and can represent a wide variety of types of data you normally store on your computer including images, videos, and documents.

Key Resources

  1. Storage Account
    • Creates a unique namespace in Azure for accessing data.
    • Forms the base address for objects in the storage account.
    • Example URL: http://mystorage.blob.core.windows.net for a storage account named MyStorage.
  2. Containers
    • Used to organize blobs within a storage account, akin to directories in a file system.
    • Unlimited containers within a storage account, each capable of storing an unlimited number of blobs.
  3. Blob Types
    • Block Blobs
      • Can store up to about 190.7 TiB of text and binary data.
      • Consists of manageable blocks of data, hence the name.
    • Append Blobs
      • Optimized for append operations.
      • Suitable for logging data from virtual machines.
    • Page Blobs
      • Used for storing random access files up to 8 TiB.
      • Ideal for storing VHD files, serving as disks for Azure virtual machines.

Resource Relationship The storage account, containers, and blobs have a hierarchical relationship, forming a structured organization for your data.

Back to the top

Access Tiers

Blob Storage allows setting a default access tier for the entire storage account and supports individual blob tier configurations.

Azure Data Lake Storage Gen2 provides hierarchical storage on top of Blob Storage for specialized use cases.

From the UI

In the example below, we can see the important details in the Overview section of the Storage account.

|| |-|

For more information: Azure Blob Storage Introduction.

Back to the top

Lifecycle Management

Effectively configuring Azure Blob Storage lifecycle management policies is crucial for optimizing costs associated with blob access and storage.

Setting Up Lifecycle Management Policies

  1. Scenario:
    • Optimize costs for monthly reports with varying access patterns over ten years.
  2. Portal Setup:
    • Access the Azure portal, select the storage account, and navigate to “Lifecycle management.”
    • Create a new rule named “LifecycleForReports.”
    • Apply the rule to all blobs, specifically “Block blobs.”
    • Define conditions to move blobs across tiers, example:
      • Move to Cool tier after 30 days
      • Move to Archive tier after 12 months
      • Delete after 10 years
  3. Additional Customizations:
    • Implement filters based on blob names using blob prefix.
    • Enable access tracking for last access time-based conditions.

Command Line Configuration

  1. JSON File Creation:
    • Create a JSON file containing the configured rules in the portal.
    • The JSON structure includes rule actions and filters.
  2. Uploading to Cloud Shell:
    • In Cloud Shell, upload the JSON file.
    • Utilize Azure CLI commands for management policy creation.
  3. Command Example:
    • Use the command:

       az storage account management-policy create --account-name YOUR_ACCOUNT_NAME --policy YOUR_JSON_FILE_NAME --resource-group YOUR_RESOURCE_GROUP_NAME  
      
  4. Applying Policies:
    • Execute the command to apply the lifecycle policy to the specified storage account.
    • Policies take up to 24 hours to go into effect.

Back to the top

Azure Files

Azure Files makes file shares available in the cloud, offering a fully managed solution.

Management and Operations

Resilience and Reliability

By leveraging Azure Files, organizations can simplify file storage management, enhance accessibility, and ensure reliability without the overhead of traditional on-premises file servers.

Back to the top

Azure Queues

Azure Queue Storage provides a scalable and reliable solution for managing messages in distributed applications, enhancing communication and coordination among various system components.

Components of Azure Queue Service

  1. URL Format
    • Specific URL format required to access a queue, including the storage account name and queue name.
    • Example URL: http://mystorageaccount.queue.core.windows.net/images-to-process
  2. Storage Account:
    • All access to Azure storage services, including queues, is through a storage account.
    • The storage account acts as the overarching container for Azure storage.
  3. Queue
    • A queue is essentially a set of messages.
    • When naming a queue, use all lowercase letters.
  4. Message
    • Messages can be in any format. and can be up to 64 kB in size.
    • Messages play a crucial role in enabling communication between different components of a distributed application.

Back to the top

Azure Table Storage

Azure Table Storage is a NoSQL datastore, providing a schema-less and flexible approach to storing structured non-relational data.

Components

  1. URL Format for Access:
    • Format: http://<storage account>.table.core.windows.net/<table>
    • Unique URL with storage account name and table name.
  2. Storage Account:
    • All access to Azure storage, including table storage, is via a storage account.
  3. Table:
    • A collection of entities; unlike relational databases, tables do not enforce a strict schema.
  4. Entity:
    • Comparable to a traditional database row.
    • Essentially, a set of properties.
    • Each entity can be up to 1 MB in size.
  5. Properties:
    • Name-value pairs.
    • Up to 252 properties per entity.
    • Three system properties:
      • partition key
      • row key
      • timestamp

Key Relationships

Back to the top

Azure Managed Disks

Azure virtual machines (VMs) use Azure disks as their attached disk storage.

Azure Managed Disks provide a virtualized, scalable, and highly available storage solution for Azure VMs.

Benefits

  1. Availability
    • Designed for 99.999% availability with three replicas of data per disk, protecting against two failures of disk replicas.
  2. Scalability
    • Supports up to 50,000 VM disks of a specific type per region in each subscription, enabling the creation of numerous virtual machines.
  3. Integration:
    • With availability sets:
      • Isolation of VM disks within an availability set, guarding against a single point of failure within an Azure data center.
    • With availability zones:
      • Protection against entire Azure data center failures.
  4. Backup and Restore
    • Integrated with Azure backup, supporting backup and restore of managed disks, making VM restores easy.
  5. Access Control
    • Granular access control through Azure role-based access control (RBAC), allowing specific permissions for managed disks.
  6. Upload Ease
    • Facilitates the upload of on-prem VMs to Azure through direct upload, streamlining the VHD file transfer process.

Encryptions

  1. Server-side Encryption (SSE)
    • Default for all managed disks.
    • Provides encryption at rest for data, snapshots, and images.
  2. Azure Disk Encryption (ADE)
    • Enables encryption on OS and data disks of a VM.
    • Uses BitLocker for Windows VMs
    • Used DM-crypt for Linux VMs.

Disk Types

  1. Data Disks
    • Attached to a VM to store applications and data.
    • Registered as a SCSI drive, assignable drive letters,
    • Max capacity of 32 terabytes.
    • Number of data disks depends on VM size.
  2. OS Disks
    • Deployed with a VM, hosts OS and boot volume.
    • Max capacity of 4 terabytes.
  3. Temporary Disks
    • Not a managed disk, not intended for important data.
    • Every VM contains a temporary disk,
    • Used for page files and swap files,
    • Data may be lost during maintenance events or VM redeployment.
    • Assigned the drive letter D on Windows and
    • Assigned to /dev/sdb on Azure Linux VMs.

      || |-|

Back to the top

Redundancy Options

Azure Storage provides six redundancy options, ranging from locally-redundant to read-access geo-zone-redundant storage. Each option offers different levels of redundancy and pricing.

Note that not all of these options are available in every region or for every type of data.

Locally-Redundant Storage (LRS)

Zone-Redundant Storage (ZRS)

Geo-Redundant Storage (GRS)

Read-Access Geo-Redundant Storage (RA-GRS)

Geo-Zone-Redundant Storage (GZRS)

Read-Access Geo-Zone-Redundant Storage (RA-GZRS)

Redundancy Pricing

Naturally, each of these redundancy options has a different price.

Back to the top

Performance Levels

Aside from the redundancy level and the default access tier, there’s yet another option you need to set when you create a storage account: the performance level.

Data Transfer into Azure Storage

Migration Tools

Back to the top

Resources