/docs/azure/storage/blob-storage.html

Azure Blob Storage

Azure Blob Storage is Microsoft's object storage solution for the cloud. It's optimized for storing massive amounts of unstructured data such as text or binary data.

Introduction

Blob storage is designed to store data as individual blobs. It's highly scalable, cost-effective, and offers various tiers for different access patterns. This documentation provides a comprehensive overview of Azure Blob Storage, its features, and how to use it.

Key Concepts

Getting Started

Create a Storage Account

To use Blob Storage, you first need an Azure Storage Account. You can create one through the Azure portal, Azure CLI, or PowerShell.

az storage account create \
    --name mystorageaccountname \
    --resource-group myresourcegroup \
    --location eastus \
    --sku Standard_RAGRS \
    --kind StorageV2

Create a Container

Once your storage account is ready, you can create containers to organize your blobs.

az storage container create \
    --name mycontainer \
    --account-name mystorageaccountname \
    --auth-mode login

Upload a Blob

You can upload files (blobs) to your container using various methods, including the Azure portal, Azure CLI, or SDKs.

az storage blob upload \
    --container-name mycontainer \
    --name myblob.txt \
    --file /path/to/your/local/file.txt \
    --account-name mystorageaccountname \
    --auth-mode login

Accessing Blobs

Blobs can be accessed using Shared Access Signatures (SAS) for limited-time access, access keys for full control, or managed identities for secure application access. You can also set public access levels for containers and blobs.

To download a blob:

az storage blob download \
    --container-name mycontainer \
    --name myblob.txt \
    --file ./downloaded-myblob.txt \
    --account-name mystorageaccountname \
    --auth-mode login

Blob Types

Azure Blob Storage supports three types of blobs:

Security

Security is paramount. Azure Blob Storage offers robust security features:

Pricing

Blob storage pricing is based on several factors:

Refer to the Azure Blob Storage pricing page for detailed information.

Use Cases

SDKs & Tools

Interact with Azure Blob Storage using a variety of SDKs and tools:

For building resilient applications, consider using the access tiers effectively to optimize costs based on data access frequency.