開始使用儲存體總管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 訂用帳戶。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. 在左邊的樹狀目錄中尋找 [Local and Attached] (本機與已連結) ,以滑鼠右鍵按一下 [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