使用 Azure 导入/导出服务从 Azure Blob 存储导出数据Use the Azure Import/Export service to export data from Azure Blob storage

本文分步说明如何使用 Azure 导入/导出服务从 Azure Blob 存储安全地导出大量数据。This article provides step-by-step instructions on how to use the Azure Import/Export service to securely export large amounts of data from Azure Blob storage. 该服务要求你将空驱动器寄送到 Azure 数据中心。The service requires you to ship empty drives to the Azure datacenter. 该服务将数据从存储帐户导出到驱动器,然后将驱动器寄回。The service exports data from your storage account to the drives and then ships the drives back.

先决条件Prerequisites

在创建导出作业以从 Azure Blob 存储传输数据之前,请仔细查看并完成以下此服务的先决条件列表。Before you create an export job to transfer data out of Azure Blob Storage, carefully review and complete the following list of prerequisites for this service. 必须具备以下条件:You must:

步骤 1:创建导出作业Step 1: Create an export job

在 Azure 门户中执行以下步骤来创建导出作业。Perform the following steps to create an export job in the Azure portal.

  1. 登录到 https://portal.azure.cn/Log on to https://portal.azure.cn/.

  2. 转到“所有服务”>“存储”>“导入/导出作业”。Go to All services > Storage > Import/export jobs.

    转到导入/导出作业

  3. 单击“创建导入/导出作业”。Click Create Import/export Job.

    单击导入/导出作业

  4. 在“基本信息”中:In Basics:

    • 选择“从 Azure 导出”。Select Export from Azure.

    • 为导出作业输入一个描述性名称。Enter a descriptive name for the export job. 使用所选名称来跟踪作业进度。Use the name you choose to track the progress of your jobs.

      • 此名称可以包含大写和小写字母、数字、连字符。The name may contain both higher and lower case letters, numbers, hyphens.
      • 此名称必须以字母开头,并且不得包含空格。The name must start with a letter, and may not contain spaces.
    • 选择一个订阅。Select a subscription.

    • 输入或选择一个资源组。Enter or select a resource group.

      基础知识

  5. 在“作业详细信息”中:In Job details:

    • 选择要导出的数据所在的存储帐户。Select the storage account where the data to be exported resides. 使用附近位置的存储帐户。Use a storage account close to where you are located.

    • 放置位置会根据选定存储帐户所属的区域自动进行填充。The dropoff location is automatically populated based on the region of the storage account selected.

    • 指定要从存储帐户导出到空驱动器的 blob 数据。Specify the blob data you wish to export from your storage account to your blank drive or drives.

    • 选择“全部导出”以导出存储帐户中的所有 blob 数据。Choose to Export all blob data in the storage account.

      全部导出

    • 可以指定要导出的容器和 blob。You can specify which containers and blobs to export.

      • 指定要导出的 blob:使用“等于”选择器。To specify a blob to export: Use the Equal To selector. 指定 blob 的相对路径,以容器名称开头。Specify the relative path to the blob, beginning with the container name. 使用 $root 指定根容器。Use $root to specify the root container.

      • 指定以某个前缀开头的所有 blob:使用“开头为”选择器。To specify all blobs starting with a prefix: Use the Starts With selector. 指定以正斜杠“/”开头的前缀。Specify the prefix, beginning with a forward slash '/'. 该前缀可以是容器名称的前缀、完整容器名称或者后跟 Blob 名称前缀的完整容器名称。The prefix may be the prefix of the container name, the complete container name, or the complete container name followed by the prefix of the blob name. 必须以有效格式提供 blob 路径,以免在处理过程中出现错误,如以下屏幕截图所示。You must provide the blob paths in valid format to avoid errors during processing, as shown in this screenshot. 有关详细信息,请参阅有效 blob 路径示例For more information, see Examples of valid blob paths.

        导出所选容器和 blob

    • 可以从 blob 列表文件进行导出。You can export from the blob list file.

      从 blob 列表文件导出

    备注

    如果在复制数据时,要导出的 blob 正在使用中,则 Azure 导入/导出服务将生成该 blob 的快照并复制快照。If the blob to be exported is in use during data copy, Azure Import/Export service takes a snapshot of the blob and copies the snapshot.

  6. 在“回寄信息”中:In Return shipping info:

    • 从下拉列表中选择承运商。Select the carrier from the dropdown list.

    • 输入你已在该承运商那里创建的有效承运商帐户编号。Enter a valid carrier account number that you have created with that carrier. 如果没有承运人帐号,请键入 null 或 unknown。If you don't have the carrier account number, please type null or unknown. 当导出作业完成后,我们使用此帐户寄回驱动器。We use this account to ship the drives back to you once your export job is complete.

    • 提供完整且有效的联系人姓名、电话、电子邮件、街道地址、城市、邮政编码、省/自治区/直辖市和国家/地区。Provide a complete and valid contact name, phone, email, street address, city, zip, state/province, and country/region.

      提示

      请提供组电子邮件,而非为单个用户指定电子邮件地址。Instead of specifying an email address for a single user, provide a group email. 这可确保即使管理员离开也会收到通知。This ensures that you receive notifications even if an admin leaves.

  7. 在“摘要”中:In Summary:

    • 查看作业详细信息。Review the details of the job.

    • 记下作业名称以及为将磁盘寄送到 Azure 而提供的 Azure 数据中心寄送地址。Make a note of the job name and provided Azure datacenter shipping address for shipping disks to Azure.

      备注

      始终将磁盘发送到 Azure 门户中记录的数据中心。Always send the disks to the datacenter noted in the Azure portal. 如果磁盘寄送到错误的数据中心,则不会处理该作业。If the disks are shipped to the wrong datacenter, the job will not be processed.

    • 单击“确定”以完成导出作业的创建。Click OK to complete export job creation.

步骤 2:寄送驱动器Step 2: Ship the drives

可以使用 EMS 将包裹寄送到 Azure 数据中心。EMS can be used to ship the package to Azure datacenter.

  • 提供 Azure 将用于寄回驱动器的有效 EMS 运营商帐号。Provide a valid EMS carrier account number that Azure will use to ship the drives back.

步骤 3:使用跟踪信息更新作业Step 3: Update the job with tracking information

寄送磁盘后,请返回到 Azure 门户中的“导入/导出” 页面。After shipping the disks, return to the Import/Export page on the Azure portal.

重要

如果在创建作业后的 2 周内未更新跟踪号,该作业会过期。If the tracking number is not updated within 2 weeks of creating the job, the job expires.

若要更新跟踪号,请执行以下步骤。To update the tracking number, perform the following steps.

  1. 选择并单击作业。Select and click the job.
  2. 单击“寄送驱动器后更新作业状态和跟踪信息” 。Click Update job status and tracking info once drives are shipped.
  3. 选中“标记为已寄送” 旁的复选框。Select the checkbox against Mark as shipped.
  4. 提供承运商信息 和跟踪号码 (例如 ID:000000000000000000;SN:00000000000000)。Provide the Carrier and Tracking number (e.g.ID:000000000000000000;SN:00000000000000).
    • 对于跟踪号码:For tracking numbers:
    • 如果通过快递寄送,请键入有效的快递单号码 + 设备序列号。If ship by courier, please type valid courier numbers + Device serial numbers.
    • 如果自己发运,请键入 ID 号 + 设备序列号。If ship by yourself, please type ID numbers + Device serial numbers.
  5. 在门户仪表板上跟踪作业进度。Track the job progress on the portal dashboard. 有关每个作业状态的说明,请转到查看作业状态For a description of each job state, go to View your job status.

步骤 4:接收磁盘Step 4: Receive the disks

当仪表板报告作业已完成时,会将磁盘寄送给你,并且门户上会提供货件的跟踪号。When the dashboard reports the job is complete, the disks are shipped to you and the tracking number for the shipment is available on the portal.

  1. 收到包含导出数据的驱动器后,你需要获取 BitLocker 密钥才能解锁驱动器。After you receive the drives with exported data, you need to get the BitLocker keys to unlock the drives. 转到 Azure 门户中的导出作业。Go to the export job in the Azure portal. 单击“导入/导出”选项卡。Click Import/Export tab.

  2. 从列表中选择并单击导出作业。Select and click your export job from the list. 转到“加密”,然后复制密钥。Go to Encryption and copy the keys.

    查看导出作业的 BitLocker 密钥

  3. 使用 BitLocker 密钥解锁磁盘。Use the BitLocker keys to unlock the disks.

导出已完成。The export is complete.

步骤 5:解锁磁盘Step 5: Unlock the disks

使用以下命令解锁驱动器:Use the following command to unlock the drive:

WAImportExport Unlock /bk:<BitLocker key (base 64 string) copied from Encryption blade in Azure portal> /driveLetter:<Drive letter>

下面是示例输入的示例。Here is an example of the sample input.

WAImportExport.exe Unlock /bk:CAAcwBoAG8AdQBsAGQAIABiAGUAIABoAGkAZABkAGUAbgA= /driveLetter:e

现在,可删除作业,也可将其保留。At this time, you can delete the job or leave it. 作业将在 90 天后自动删除。Jobs automatically get deleted after 90 days.

有效 blob 路径示例Examples of valid blob paths

下表显示有效 Blob 路径的示例:The following table shows examples of valid blob paths:

选择器Selector Blob 路径Blob Path 说明Description
开头为Starts With / 导出存储帐户中的所有 BlobExports all blobs in the storage account
开头为Starts With /$root//$root/ 导出根容器中的所有 BlobExports all blobs in the root container
开头为Starts With /book/book 导出任何容器中以前缀 book 开头的所有 BlobExports all blobs in any container that begins with prefix book
开头为Starts With /music//music/ 导出容器 music 中的所有 BlobExports all blobs in container music
开头为Starts With /music/love/music/love 导出容器 music 中以前缀 love 开头的所有 BlobExports all blobs in container music that begin with prefix love
等于Equal To $root/logo.bmp$root/logo.bmp 导出根容器中的 Blob logo.bmpExports blob logo.bmp in the root container
等于Equal To videos/story.mp4videos/story.mp4 导出容器 videos 中的 Blob story.mp4Exports blob story.mp4 in container videos

后续步骤Next steps