使用 Azure 存储资源管理器将数据移入和移出 Azure Blob 存储Move data to and from Azure Blob Storage using Azure Storage Explorer

Azure 存储资源管理器是 Microsoft 免费提供的应用,可用于在 Windows、macOS 和 Linux 上处理 Azure 存储数据。Azure Storage Explorer is a free tool from Microsoft that allows you to work with Azure Storage data on Windows, macOS, and Linux. 本主题介绍如何使用它从 Azure Blob 存储上传和下载数据。This topic describes how to use it to upload and download data from Azure blob storage. 该工具可以从 Microsoft Azure 存储资源管理器下载。The tool can be downloaded from Microsoft Azure Storage Explorer.

此菜单链接到可用于将数据移入和移出 Azure Blob 存储的技术:This menu links to technologies you can use to move data to and from Azure Blob storage:

Note

如果正在使用通过 Azure 中数据科学虚拟机提供的脚本设置的 VM,则 VM 上已安装 Azure 存储资源管理器。If you are using VM that was set up with the scripts provided by Data Science Virtual machines in Azure, then Azure Storage Explorer is already installed on the VM.

Note

有关 Azure Blob 存储的完整介绍,请参阅 Azure Blob 基本知识Azure Blob 服务For a complete introduction to Azure blob storage, refer to Azure Blob Basics and Azure Blob Service.

必备条件Prerequisites

本文档假定已有 Azure 订阅、存储帐户,以及该帐户对应的存储密钥。This document assumes that you have an Azure subscription, a storage account, and the corresponding storage key for that account. 上传/下载数据之前,必须知道 Azure 存储帐户名和帐户密钥。Before uploading/downloading data, you must know your Azure storage account name and account key.

  • 若要设置 Azure 订阅,请参阅试用一个月版To set up an Azure subscription, see one-month trial.
  • 有关创建存储帐户的说明和有关获取帐户和密钥的信息,请参阅关于 Azure 存储帐户For instructions on creating a storage account and for getting account and key information, see About Azure storage accounts. 记下存储帐户的访问密钥,因为在使用 Azure 存储资源管理器工具连接到帐户时需要此密钥。Make a note the access key for your storage account as you need this key to connect to the account with the Azure Storage Explorer tool.
  • Azure Storage Explorer 工具可以从 Microsoft Azure 存储资源管理器下载。The Azure Storage Explorer tool can be downloaded from Microsoft Azure Storage Explorer. 在安装过程中接受默认值。Accept the defaults during install.

使用 Azure 存储资源管理器Use Azure Storage Explorer

以下步骤介绍如何使用 Azure 存储资源管理器上传/下载数据。The following steps document how to upload/download data using Azure Storage Explorer.

  1. 启动 Microsoft Azure 存储资源管理器Launch Microsoft Azure Storage Explorer.
  2. 要打开“登录到帐户”向导,请选择“Azure 帐户设置”图标,然后选择“添加帐户”并输入凭据。To bring up the Sign in to your account... wizard, select Azure account settings icon, then Add an account and enter you credentials. 添加 Azure 存储帐户Add an Azure storage account
  3. 要打开“连接到 Azure 存储”向导,请选择“连接到 Azure 存储”图标。To bring up the Connect to Azure Storage wizard, select the Connect to Azure storage icon. 单击“连接到 Azure 存储”Click "Connect to Azure storage"
  4. 在“连接到 Azure 存储”向导中,输入 Azure 存储帐户中的访问密钥,然后选择“下一步”。Enter the access key from your Azure storage account on the Connect to Azure Storage wizard and then Next. 输入 Azure 存储帐户访问密钥Enter access key from Azure storage account
  5. 在“帐户名”框中,输入存储帐户名称,并选择“下一步”。Enter storage account name in the Account name box and then select Next. 附加外部存储Attach external storage
  6. 现在应列出添加的存储帐户。The storage account added should now be listed. 要在存储帐户中创建一个 blob 容器,请用鼠标右键单击帐户中的“Blob 容器”节点,选择“创建 Blob 容器”,并输入一个名称。To create a blob container in a storage account, right-click the Blob Containers node in that account, select Create Blob Container, and enter a name.
  7. 要将数据上传到容器,请选择目标容器,然后单击“上传”按钮。 存储帐户To upload data to a container, select the target container and click the Upload button.Storage accounts
  8. 单击“文件”框右侧的“...”,选择要从文件系统上载的一个或多个文件,并单击“上载”开始上载文件。 上载文件Click on the ... to the right of the Files box, select one or multiple files to upload from the file system and click Upload to begin uploading the files.Upload files
  9. 要下载数据,请在相应容器中选择要下载的 blob,并单击“下载”。To download data, selecting the blob in the corresponding container to download and click Download. 下载文件Download files