Azure Blob Storage Documentation

Table of Contents

Introduction to Azure Blob Storage

Azure Blob Storage is Microsoft's highly scalable object storage solution for the cloud. Blob storage is optimized to store massive amounts of unstructured data, such as text or binary data. Unstructured data is data that doesn't adhere to a particular data model or definition, such as images, videos, audio files, or any other type of media file, documents, or backups.

You can use Blob Storage to:

Getting Started with Blob Storage

Create an Azure Storage Account

Before you can use Blob Storage, you need an Azure Storage account. A storage account provides a unique namespace in Azure for your data.

Follow these steps to create a storage account:

  1. Sign in to the Azure portal.
  2. Navigate to Storage accounts and click Create.
  3. Fill in the required fields: Subscription, Resource group, Storage account name, Region, and Performance. Choose Standard or Premium depending on your needs.
  4. For the Replication setting, choose the redundancy option that best suits your needs (e.g., Locally-redundant storage (LRS), Geo-redundant storage (GRS)).
  5. Click Review + create, and then click Create.

Create a Container

Blobs are stored in containers. A container is a logical grouping of blobs, similar to a folder in a file system.

In the Azure portal, navigate to your storage account, then under Data storage, select Containers. Click + Container, provide a name, and set the public access level.

Upload a Blob

You can upload blobs using the Azure portal, Azure Storage Explorer, Azure CLI, PowerShell, or by using one of the Azure Storage SDKs.

Using Azure Portal:

  1. Navigate to the container you created.
  2. Click the Upload button.
  3. Select the file(s) you want to upload.
  4. Choose the blob type (Block Blob, Append Blob, or Page Blob) and any advanced options.

Example using Azure CLI:


az storage blob upload \
    --account-name <your-storage-account-name> \
    --container-name <your-container-name> \
    --name <blob-name> \
    --file <path-to-your-file> \
    --auth-mode login 
            

Key Concepts in Blob Storage

Blobs

A blob is a collection of data stored as a single unit. Blob storage supports three types of blobs:

Containers

A container is a mandatory first level of organization in Blob Storage, similar to a directory in a file system. A storage account can contain an unlimited number of containers, but each container can only contain blobs.

Storage Tiers

Azure Blob Storage offers different access tiers to store data at the right price point:

You can rehydrate data from Cool or Archive tiers to Hot tier.

API Reference

Explore the comprehensive REST API reference for Azure Blob Storage operations:

Blob Service REST API Reference

Azure SDKs

Use the Azure SDKs to interact with Blob Storage from your applications:

Tutorials and Quickstarts

Get hands-on with tutorials and quickstarts to get started quickly: