Azure Blob 存储简介Introduction to Azure Blob storage

Azure Blob 存储是 Azure 的适用于云的对象存储解决方案。Azure Blob storage is Azure's object storage solution for the cloud. Blob 存储最适合存储巨量的非结构化数据。Blob storage is optimized for storing massive amounts of unstructured data. 非结构化数据是不遵循特定数据模型或定义的数据(如文本或二进制数据)。Unstructured data is data that does not adhere to a particular data model or definition, such as text or binary data.

关于 Blob 存储About Blob storage

Blob 存储用于:Blob storage is designed for:

  • 直接向浏览器提供图像或文档。Serving images or documents directly to a browser.
  • 存储文件以供分布式访问。Storing files for distributed access.
  • 对视频和音频进行流式处理。Streaming video and audio.
  • 向日志文件进行写入。Writing to log files.
  • 存储用于备份和还原、灾难恢复及存档的数据。Storing data for backup and restore, disaster recovery, and archiving.
  • 存储数据以供本地或 Azure 托管服务执行分析。Storing data for analysis by an on-premises or Azure-hosted service.

用户或客户端应用程序通过 HTTP/HTTPS 可以从世界任何地方访问 Blob 存储中的对象。Users or client applications can access objects in Blob storage via HTTP/HTTPS, from anywhere in the world. Blob 存储中的对象可以通过 Azure 存储 REST APIAzure PowerShellAzure CLI 或 Azure 存储客户端库访问。Objects in Blob storage are accessible via the Azure Storage REST API, Azure PowerShell, Azure CLI, or an Azure Storage client library. 提供了不同语言的客户端库,包括:Client libraries are available for different languages, including:

关于 Azure Data Lake Storage Gen2About Azure Data Lake Storage Gen2

Blob 存储支持 Azure Data Lake storage Gen2,即 Azure 适用于云的企业大数据分析解决方案。Blob storage supports Azure Data Lake Storage Gen2, Azure's enterprise big data analytics solution for the cloud. Azure Data Lake Storage Gen2 提供了分层文件系统以及 Blob 存储的优势,包括:Azure Data Lake Storage Gen2 offers a hierarchical file system as well as the advantages of Blob storage, including:

  • 低成本分层存储Low-cost, tiered storage
  • 高可用性High availability
  • 强一致性Strong consistency
  • 灾难恢复功能Disaster recovery capabilities

有关 Data Lake Storage Gen2 的详细信息,请参阅 Azure Data Lake Storage Gen2 简介For more information about Data Lake Storage Gen2, see Introduction to Azure Data Lake Storage Gen2.

Blob 存储资源Blob storage resources

Blob 存储提供了三种类型的资源:Blob storage offers three types of resources:

  • 存储帐户The storage account
  • 存储帐户中的容器A container in the storage account
  • 容器中的 BlobA blob in a container

以下图示显示了这些资源之间的关系。The following diagram shows the relationship between these resources.

显示存储帐户、容器和 blob 之间关系的示意图

存储帐户Storage accounts

存储帐户在 Azure 中为数据提供唯一的命名空间。A storage account provides a unique namespace in Azure for your data. 存储在 Azure 存储中的每个对象都有一个地址,其中包含唯一的帐户名称。Every object that you store in Azure Storage has an address that includes your unique account name. 帐户名称与 Azure 存储 blob 终结点的组合构成了存储帐户中对象的基址。The combination of the account name and the Azure Storage blob endpoint forms the base address for the objects in your storage account.

例如,如果存储帐户名为 mystorageaccount,则 Blob 存储的默认终结点为:For example, if your storage account is named mystorageaccount, then the default endpoint for Blob storage is: 

若要创建存储帐户,请参阅创建存储帐户To create a storage account, see Create a storage account. 若要了解存储帐户的详细信息,请参阅 Azure 存储帐户概述To learn more about storage accounts, see Azure storage account overview.


容器对一组 blob 进行组织,类似于文件系统中的目录。A container organizes a set of blobs, similar to a directory in a file system. 一个存储帐户可以包含无限数量的容器,一个容器可以存储无限数量的 Blob。A storage account can include an unlimited number of containers, and a container can store an unlimited number of blobs.


容器名称必须小写。The container name must be lowercase. 有关命名容器的详细信息,请参阅命名和引用容器、Blob 和元数据For more information about naming containers, see Naming and Referencing Containers, Blobs, and Metadata.


Azure 存储支持三种类型的 Blob:Azure Storage supports three types of blobs:

  • 块 Blob 存储文本和二进制数据,最多约为 4.7 TB。Block blobs store text and binary data, up to about 4.7 TB. 块 Blob 由可以分别管理的数据块构成。Block blobs are made up of blocks of data that can be managed individually.
  • 与块 Blob 一样,追加 Blob 也由块构成,但针对追加操作进行了优化。Append blobs are made up of blocks like block blobs, but are optimized for append operations. 追加 Blob 非常适用于诸如记录来自虚拟机的数据之类的场景。Append blobs are ideal for scenarios such as logging data from virtual machines.
  • 页 Blob 用于存储最大 8 TB 的随机访问文件。Page blobs store random access files up to 8 TB in size. 页 blob 存储虚拟硬盘 (VHD) 文件并作为 Azure 虚拟机的磁盘。Page blobs store virtual hard drive (VHD) files and serve as disks for Azure virtual machines. 有关页 Blob 的更多信息,请参阅 Azure 页 Blob 概述For more information about page blobs, see Overview of Azure page blobs

有关不同类型 Blob 的详细信息,请参阅 Understanding Block Blobs, Append Blobs, and Page Blobs(了解块 Blob、追加 Blob 和页 Blob)。For more information about the different types of blobs, see Understanding Block Blobs, Append Blobs, and Page Blobs.

将数据移至 Blob 存储Move data to Blob storage

存在许多用于将现有数据迁移到 Blob 存储的解决方案:A number of solutions exist for migrating existing data to Blob storage:

  • AzCopy 是一种易于使用的适用于 Windows 和 Linux 的命令行工具,可以跨容器或跨存储帐户将数据复制到 Blob 存储,以及从 Blob 存储复制数据。AzCopy is an easy-to-use command-line tool for Windows and Linux that copies data to and from Blob storage, across containers, or across storage accounts. 有关 AzCopy 的详细信息,请参阅使用 AzCopy v10 传输数据For more information about AzCopy, see Transfer data with the AzCopy v10.
  • Azure 存储数据移动库是一个 .NET 库,用于在 Azure 存储服务之间移动数据。The Azure Storage Data Movement library is a .NET library for moving data between Azure Storage services. AzCopy 实用程序是使用数据移动库生成的。The AzCopy utility is built with the Data Movement library. 有关详细信息,请参阅数据移动库的参考文档For more information, see the reference documentation for the Data Movement library.
  • Azure 数据工厂支持使用 Azure 资源的帐户密钥、共享访问签名、服务主体或托管标识向/从 Blob 存储复制数据。Azure Data Factory supports copying data to and from Blob storage by using the account key, a shared access signature, a service principal, or managed identities for Azure resources. 有关详细信息,请参阅使用 Azure 数据工厂向/从 Azure Blob 存储复制数据For more information, see Copy data to or from Azure Blob storage by using Azure Data Factory.
  • Azure 导入/导出服务提供了一种使用你提供的硬盘向存储帐户导入或从存储帐户导出大量数据的方法。The Azure Import/Export service provides a way to import or export large amounts of data to and from your storage account using hard drives that you provide. 有关详细信息,请参阅使用 Azure 导入/导出服务将数据传输到 Blob 存储中For more information, see Use the Azure Import/Export service to transfer data to Blob storage.

后续步骤Next steps