Azure Blob Storage

Microsoft Azure Official Documentation

Managing Azure Blob Storage

This section provides comprehensive guidance on managing your Azure Blob Storage resources, including creating and configuring storage accounts, managing containers, and performing various operations on blobs.

Creating a Storage Account

A storage account is the foundational element for all Azure Storage services. It provides a unique namespace in Azure for your data. You can create a storage account using the Azure portal, Azure CLI, PowerShell, or client libraries.

Using the Azure Portal:

  1. Navigate to the Azure portal.
  2. Click "Create a resource".
  3. Search for "Storage account" and select it.
  4. Click "Create".
  5. Fill in the required details: Subscription, Resource group, Storage account name, Region, and Performance tier.
  6. Choose the kind of storage account (e.g., General-purpose v2).
  7. Configure redundancy options (e.g., LRS, GRS, RA-GRS).
  8. Review and create the storage account.

For detailed instructions and advanced configurations, refer to the Azure Storage Account documentation.

Managing Containers

Containers are logical groupings for your blobs. You must create a container within a storage account before you can upload blobs to it.

Key Container Operations:

  • Create Container: Organize your data by creating containers.
  • List Containers: View all containers within a storage account.
  • Delete Container: Remove a container and all its contents.
  • Set Container Access Policy: Control public access to blobs within a container.

Example using Azure CLI:


# Create a container
az storage container create --name mycontainer --account-name mystorageaccount --auth-mode login

# List containers
az storage container list --account-name mystorageaccount --auth-mode login

# Set public access to blobs
az storage container set-permission --name mycontainer --public-access blob --account-name mystorageaccount --auth-mode login
                

Managing Blobs

Blobs are the fundamental objects stored in Azure Blob Storage. They can be any type of text or binary data.

Common Blob Operations:

  • Upload Blob: Upload data to a blob.
  • Download Blob: Retrieve data from a blob.
  • Delete Blob: Remove a blob.
  • Copy Blob: Copy a blob within the same or a different storage account.
  • List Blobs: View all blobs within a container.

Learn more about specific blob operations in the Blob Operations section.

Access Control and Security

Securing your data is paramount. Azure Blob Storage offers several mechanisms for access control, including Shared Access Signatures (SAS), Azure Active Directory integration, and Access Control Lists (ACLs) for blob-level permissions.

Explore Access Control for detailed information on securing your storage.

Explore Blob Storage Concepts