您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

存储资源管理器入门Get started with Storage Explorer

概述Overview

Azure 存储资源管理器是一款独立应用,可用于在 Windows、macOS 和 Linux 上轻松处理 Azure 存储数据。Azure Storage Explorer is a standalone app that enables you to easily work with Azure Storage data on Windows, macOS, and Linux. 本文介绍如何通过多种方式连接到 Azure 存储帐户并对其进行管理。In this article, you learn several ways of connecting to and managing your Azure storage accounts.

Microsoft Azure 存储资源管理器

必备组件Prerequisites

以下版本的 Windows 支持 Azure 存储资源管理器:Azure Storage Explorer is supported on the following versions of Windows:

  • Windows 10(推荐)Windows 10 (recommended)
  • Windows 8Windows 8
  • Windows 7Windows 7

对于所有 Windows 版本,都需要 .NET Framework 4.6.2 或更高版本。For all versions of Windows, .NET Framework 4.6.2 or greater is required.

下载并安装存储资源管理器Download and install Storage Explorer

连接到存储帐户或服务Connect to a storage account or service

存储资源管理器提供了多种连接到存储帐户的方式。Storage Explorer provides several ways to connect to storage accounts. 一般情况下您可以:In general you can either:

登录 AzureSign in to Azure

备注

若要完全访问的资源,在登录后,存储资源管理器需要管理 (ARM) 和数据层权限。To fully access resources after signing in, Storage Explorer requires both management (ARM) and data layer permissions. 这意味着你需要 Azure AD 权限可授予你访问你的存储帐户,在帐户中,容器和容器中的数据。This means that you need Azure AD permissions which give you access to your Storage account, the containers in the account, and the data in the containers. 如果您仅可以从数据层的权限,请考虑使用与 Azure AD 的附加If you only have permissions at the data layer, consider using Attach with Azure AD. 存储资源管理器所需的确切权限的详细信息,请参阅故障排除指南For more information on the exact permissions Storage Explorer requires, see the troubleshooting guide.

  1. 在存储资源管理器中选择“管理帐户”,转到“帐户管理面板”。 In Storage Explorer, select Manage Accounts to go to the Account Management Panel.

    管理帐户

  2. 左窗格随即显示已登录的所有 Azure 帐户。The left pane now displays all the Azure accounts you've signed in to. 若要连接到另一个帐户,请选择“添加帐户” 。To connect to another account, select Add an account

  3. 若要登录到某个国家/地区云或 Azure Stack,请单击“Azure 环境”下拉列表并选择要使用的 Azure 云。 If you want to sign into a national cloud or an Azure Stack, click on the Azure environment dropdown to select which Azure cloud you want to use. 选择环境后,单击“登录...”按钮。 Once you have chosen your environment, click the Sign in... button. 若要登录到 Azure Stack,请参阅将存储资源管理器连接到 Azure Stack 订阅了解详细信息。If you are signing in to Azure Stack, see Connect Storage Explorer to an Azure Stack subscription for more information.

    登录选项

  4. 使用 Azure 帐户成功登录后,该帐户以及与该帐户关联的 Azure Stack 订阅会添加到左窗格中。After you successfully sign in with an Azure account, the account and the Azure subscriptions associated with that account are added to the left pane. 选择使用的 Azure 订阅,然后选择“应用”(选择“所有订阅:”切换开关可选择列出的所有 Azure 订阅,或不选择其中的任何订阅)。 Select the Azure subscriptions that you want to work with, and then select Apply (Selecting All subscriptions: toggles selecting all or none of the listed Azure subscriptions).

    选择 Azure 订阅

    左窗格会显示与所选 Azure 订阅关联的存储帐户。The left pane displays the storage accounts associated with the selected Azure subscriptions.

    选择的 Azure 订阅

附加的特定资源Attach a specific resource

有各种选项供附加到存储资源管理器的资源。There are a variety of options for attaching a resource to Storage Explorer. 可以:You can:

添加通过 Azure AD 资源Add a resource via Azure AD

  1. 打开连接对话通过单击连接按钮左侧垂直工具栏上。Open the Connect Dialog by clicking on the connect button on the left hand, vertical toolbar.

    “连接到 Azure 存储”选项

  2. 如果尚未这样做,使用添加 Azure 帐户选项以在登录到有权访问资源的 Azure 帐户。If you have not already done so, use the Add an Azure Account option to sign in to the Azure Account which has access to the resource. 登录到返回后连接对话框After signing in return to the Connect Dialog.

  3. 选择将通过 Azure Active Directory (Azure AD) 资源添加选项,然后单击下一步Select the Add a resource via Azure Active Directory (Azure AD) option and click Next.

  4. 选择有权访问你想要附加的存储资源和资源的订阅的 Azure 帐户,然后单击下一步Select the Azure Account which has access to the Storage resource you want to attach and the subscription that the resource is in and then click Next.

  5. 选择想要附加的资源类型,然后输入连接所需的信息。Choose the resource type you want to attach, and then enter the information needed to connect. 此页上的输入具体取决于哪种类型的资源要添加将更改。The inputs on this page will change depending on what type of resource you are adding. 请确保选择正确的资源类型。Make sure to choose the correct type of resource. 填写完所需的信息,请单击后下一步Once you have filled in the required information click Next.

  6. 查看摘要的连接,并确保所有信息正确。Review the connection summary and make sure all of the information is correct. 如果一切正确的信息然后单击Connect,否则为返回到与前面的页按钮以更正任何错误的信息。If all of the information looks correct then click Connect, otherwise return to the previous pages with the Back button to correct any wrong information.

连接已成功添加后,资源树将自动导航到表示连接的节点。Once the connection is successfully added, the resource tree will automatically navigate to the node representing the connection. 如果没有打开,请查看下出于某种原因本地和附加存储帐户(附加容器)Blob 容器.If for some reason it doesn't, look under Local & AttachedStorage Accounts(Attached Containers)Blob Containers. 如果存储资源管理器无法添加你的连接,或如果无法访问你的数据已成功添加该连接后,请查阅故障排除指南有关的帮助。If Storage Explorer was unable to add your connection, or if you cannot access your data after successfully adding the connection, then consult the troubleshooting guide for help.

使用连接字符串Use a connection string

  1. 打开连接对话通过单击连接按钮左侧垂直工具栏上。Open the Connect Dialog by clicking on the connect button on the left hand, vertical toolbar.

    “连接到 Azure 存储”选项

  2. 选择使用的连接字符串选项,然后单击下一步Select the Use a connection string option and click Next.

  3. 选择你的连接的显示名称和连接字符串中输入。Choose a display name for your connection and enter in your connection string. 然后单击“下一步” 。Then click Next.

  4. 查看摘要的连接,并确保所有信息正确。Review the connection summary and make sure all of the information is correct. 如果一切正确的信息然后单击Connect,否则为返回到与前面的页按钮以更正任何错误的信息。If all of the information looks correct then click Connect, otherwise return to the previous pages with the Back button to correct any wrong information.

连接已成功添加后,资源树将自动导航到表示连接的节点。Once the connection is successfully added, the resource tree will automatically navigate to the node representing the connection. 如果没有打开,请查看下出于某种原因本地和附加存储帐户If for some reason it doesn't, look under Local & AttachedStorage Accounts. 如果存储资源管理器无法添加你的连接,或如果无法访问你的数据已成功添加该连接后,请查阅故障排除指南有关的帮助。If Storage Explorer was unable to add your connection, or if you cannot access your data after successfully adding the connection, then consult the troubleshooting guide for help.

使用 SAS URIUse a SAS URI

  1. 打开连接对话通过单击连接按钮左侧垂直工具栏上。Open the Connect Dialog by clicking on the connect button on the left hand, vertical toolbar.

    “连接到 Azure 存储”选项

  2. 选择使用共享的访问签名 (SAS) URI选项,然后单击下一步Select the Use a shared access signature (SAS) URI option and click Next.

  3. 选择你的连接的显示名称并输入 SAS URI 中。Choose a display name for your connection and enter in your SAS URI. 要附加的资源的类型的服务终结点应自动填充。The service endpoint for the type of resource you are attaching should autofill. 如果您正在使用自定义终结点,则可能它可能不会。If you are using a custom endpoint then it is possible it may not. 单击“下一步”。 Click Next.

  4. 查看摘要的连接,并确保所有信息正确。Review the connection summary and make sure all of the information is correct. 如果一切正确的信息然后单击Connect,否则为返回到与前面的页按钮以更正任何错误的信息。If all of the information looks correct then click Connect, otherwise return to the previous pages with the Back button to correct any wrong information.

连接已成功添加后,资源树将自动导航到表示连接的节点。Once the connection is successfully added, the resource tree will automatically navigate to the node representing the connection. 如果没有打开,请查看下出于某种原因本地和附加存储帐户(附加容器)的类型的服务节点您附加的容器If for some reason it doesn't, look under Local & AttachedStorage Accounts(Attached Containers)the service node for the type of container you attached. 如果存储资源管理器无法添加你的连接,或如果无法访问你的数据已成功添加该连接后,请查阅故障排除指南有关的帮助。If Storage Explorer was unable to add your connection, or if you cannot access your data after successfully adding the connection, then consult the troubleshooting guide for help.

使用名称和密钥Use a name and key

  1. 打开连接对话通过单击连接按钮左侧垂直工具栏上。Open the Connect Dialog by clicking on the connect button on the left hand, vertical toolbar.

    “连接到 Azure 存储”选项

  2. 选择使用存储帐户名称和密钥选项,然后单击下一步Select the Use a storage account name and key option and click Next.

  3. 选择你的连接的显示名称。Choose a display name for your connection.

  4. 输入你的存储帐户名称和其访问密钥之一中。Enter in your Storage account name and either of its access keys.

  5. 选择存储域使用,然后单击下一步Choose the Storage domain to use and then click Next.

  6. 查看摘要的连接,并确保所有信息正确。Review the connection summary and make sure all of the information is correct. 如果一切正确的信息然后单击Connect,否则为返回到与前面的页按钮以更正任何错误的信息。If all of the information looks correct then click Connect, otherwise return to the previous pages with the Back button to correct any wrong information.

连接已成功添加后,资源树将自动导航到表示连接的节点。Once the connection is successfully added, the resource tree will automatically navigate to the node representing the connection. 如果没有打开,请查看下出于某种原因本地和附加存储帐户If for some reason it doesn't, look under Local & AttachedStorage Accounts. 如果存储资源管理器无法添加你的连接,或如果无法访问你的数据已成功添加该连接后,请查阅故障排除指南有关的帮助。If Storage Explorer was unable to add your connection, or if you cannot access your data after successfully adding the connection, then consult the troubleshooting guide for help.

将附加到一个本地仿真程序Attach to a local emulator

存储资源管理器在所有平台上支持仿真程序。Storage Explorer supports emulators on all platforms. 这两个当前官方可用的仿真程序是:The two currently official available emulators are:

如果在仿真程序运行在默认端口上可以使用仿真程序的默认端口节点,始终可以下找到本地和附加存储帐户若要快速访问你的仿真程序。If your emulator is running on the default ports you can use the Emulator - Default Ports node, which can always be found under Local & AttachedStorage Accounts, to quickly access your emulator. 如果你想要使用不同的名称为你的连接,或如果在仿真程序未运行上的默认端口,然后按照以下步骤。If you want to use a different name for your connection or if your emulator is not running on the default ports, then follow the below steps.

  1. 启动模拟器。Start your emulator. 时,请记下的哪些端口在仿真程序正在侦听的每个服务类型。When you do, make a note of what ports the emulator is listening on for each service type. 您需要知道此信息更高版本。You will need to know this information later.

    重要

    存储资源管理器不会自动启动模拟器。Storage Explorer does not automatically start your emulator. 必须自行启动。You must start it yourself.

  2. 打开连接对话通过单击连接按钮左侧垂直工具栏上。Open the Connect Dialog by clicking on the connect button on the left hand, vertical toolbar.

    “连接到 Azure 存储”选项

  3. 选择附加到本地模拟器选项,然后单击下一步Select the Attach to a local emulator option and click Next.

  4. 选择你的连接的显示名称,并在仿真程序正在侦听的每个服务类型的端口输入。Choose a display name for your connection and enter in the ports your emulator is listening on for each service type. 默认情况下,文本框中将包含默认端口值对于大多数仿真程序。By default, the text boxes will contain the default port values for most emulators. 文件端口还保留为空默认情况下都不正式的仿真程序当前支持的文件服务。The Files port is also left blank by default as neither of the official emulators currently support the Files service. 如果你使用的仿真程序不但是支持,您可以输入中正在使用的端口。If the emulator you are using does support it though, then you can enter in the port which is being used. 单击“下一步”。 Click Next.

  5. 查看摘要的连接,并确保所有信息正确。Review the connection summary and make sure all of the information is correct. 如果一切正确的信息然后单击Connect,否则为返回到与前面的页按钮以更正任何错误的信息。If all of the information looks correct then click Connect, otherwise return to the previous pages with the Back button to correct any wrong information.

连接已成功添加后,资源树将自动导航到表示连接的节点。Once the connection is successfully added, the resource tree will automatically navigate to the node representing the connection. 如果没有打开,请查看下出于某种原因本地和附加存储帐户If for some reason it doesn't, look under Local & AttachedStorage Accounts. 如果存储资源管理器无法添加你的连接,或如果无法访问你的数据已成功添加该连接后,请查阅故障排除指南有关的帮助。If Storage Explorer was unable to add your connection, or if you cannot access your data after successfully adding the connection, then consult the troubleshooting guide for help.

使用连接字符串连接到 Azure Cosmos DB 帐户Connect to an Azure Cosmos DB account by using a connection string

除了通过 Azure 订阅管理 Azure Cosmos DB 帐户外,连接到 Azure Cosmos DB 的另一种方法是使用连接字符串。Besides manage Azure Cosmos DB accounts through Azure subscription, an alternative way of connecting to an Azure Cosmos DB is to use a connection string. 按照以下步骤可使用连接字符串进行连接。Use the following steps to connect using a connection string.

  1. 在左侧树中找到“本地和附加” ,右键单击“Azure Cosmos DB 帐户” ,然后选择“连接到 Azure Cosmos DB...” Find Local and Attached in the left tree, right-click Azure Cosmos DB Accounts, choose Connect to Azure Cosmos DB...

    通过连接字符串连接到 Azure Cosmos DB

  2. 选择 Azure Cosmos DB API,粘贴“连接字符串” ,然后单击“确定” 连接 Azure Cosmos DB 帐户。Choose Azure Cosmos DB API, paste your Connection String, and then click OK to connect Azure Cosmos DB account. 有关检索连接字符串的信息,请参阅获取连接字符串For information on retrieving the connection string, see Get the connection string.

    connection-string

通过 URI 连接到 Azure Data Lake StoreConnect to Azure Data Lake Store by URI

如果需要访问某些资源,但这些资源在订阅中不存在,If you want to get access to the resources, which do not exist in your subscription. 而其他人授予了你相关权限,可以获取资源的 URI,But others grant you to get the Uri for the resources. 在这种情况下,可以在登录后使用该 URI 连接到 Data Lake Store。In this case, you can connect to Data Lake Store using the Uri after you have signed in. 请参阅以下步骤。Refer to following steps.

  1. 打开存储资源管理器。Open Storage Explorer.

  2. 在左窗格中,展开“本地和附加” 。In the left pane, expand Local and Attached.

  3. 右键单击“Data Lake Store”,然后从上下文菜单中选择“连接到 Data Lake Store...” Right-click Data Lake Store, and - from the context menu - select Connect to Data Lake Store....

    “连接到 Data Lake Store”上下文菜单

  4. 输入 URI,然后该工具就会导航到刚输入的 URL 的位置。Enter the Uri, then the tool navigates to the location of the URL you just entered.

    “连接到 Data Lake Store”上下文对话框

    “连接到 Data Lake Store”操作结果

在存储资源管理器中生成的 SASGenerate a SAS in Storage Explorer

帐户级别 SASAccount level SAS

  1. 右键单击要共享,,然后选择存储帐户获取共享访问签名... .Right-click the storage account you want share, and then select Get Shared Access Signature....

    “获取 SAS”上下文菜单选项

  2. 在“生成共享访问签名” 对话框中,指定要授予该帐户的时间范围和权限,然后单击“创建”按钮 。In the Generate Shared Access Signature dialog box, specify the time frame and permissions that you want for the account, and then click the Create button.

    “获取 SAS”对话框

  3. 你现在可以将连接字符串或原始查询字符串到剪贴板。You can now either copy the Connection string or the raw Query string to your clipboard.

服务级别 SASService level SAS

如何获取存储资源管理器中的 blob 容器的 SASHow to get a SAS for a blob container in Storage Explorer

搜索存储帐户Search for storage accounts

如果需要查找某个存储资源并且不知道它的所在位置,可以使用左窗格顶部的搜索框来搜索该资源。If you need to find a storage resource and do not know where it is, you can use the search box at the top of the left pane to search for the resource.

在搜索框中键入内容时,左窗格会显示与当前已输入搜索值匹配的所有资源。As you type in the search box, the left pane displays all resources that match the search value you've entered up to that point. 例如,以下屏幕截图显示了“终结点”的搜索结果: For example, a search for endpoints is shown in the following screenshot:

存储帐户搜索

备注

使用“帐户管理面板”取消选择不包含所要搜索的项的所有订阅,以改善搜索执行时间。 Use the Account Management Panel to deselect any subscriptions that do not contain the item you are searching for to improve the execution time of your search. 还可以右键单击某个节点,然后选择“从此处搜索”,从特定的节点开始搜索。 You can also right-click on a node and choose Search From Here to start searching from a specific node.

后续步骤Next steps