開始使用儲存體總管Get started with Storage Explorer

總覽Overview

Microsoft Azure 儲存體總管是獨立應用程式,可讓您輕鬆地使用 Windows、macOS 和 Linux 上的 Azure 儲存體資料。Microsoft 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 支援儲存體總管: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

下載並安裝儲存體總管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 訂用帳戶。For more information, see Connect Storage Explorer to an Azure Stack subscription.

    登入選項

  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

您可以使用不同的選項,附加至儲存體總管中的資源:You can attach to a resource in Storage Explorer using different options:

透過 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 haven't already done so, use the Add an Azure Account option to sign in to the Azure Account that 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 and tenant that has access to the Storage resource you want to attach to. 按一下 [下一步]。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're adding. 請務必選擇正確的資源類型。Make sure to choose the correct type of resource. 填入所需的資訊之後,請按 [下一步]Once you've filled in the required information, click Next.

  6. 請檢查連線摘要,並確定所有資訊都正確無誤。Review the connection summary and make sure all of the information is correct. 如果所有資訊看起來都正確,請按一下 [連接]If all of the information looks correct, click Connect. 否則,請使用 [上一步] 按鈕返回前一頁,以更正任何不正確的資訊。Otherwise, return to the previous pages with the Back button to correct any incorrect information.

成功新增連接之後,資源樹狀結構會自動流覽至代表連線的節點。Once the connection is successfully added, the resource tree will automatically navigate to the node representing the connection. 您也可以查看 [本機 & ] → [儲存體帳戶(已附加的容器) ] → [ Blob 容器] (如果有的話)。You can also look under Local & AttachedStorage Accounts(Attached Containers)Blob Containers if for some reason it doesn't. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取您的資料,請參閱疑難排解指南以取得說明。If Storage Explorer was unable to add your connection, or if you can't 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. 如果所有資訊看起來都正確,請按一下 [連接] ,否則請使用 [上一步] 按鈕返回前一頁,以更正任何不正確的資訊。If all of the information looks correct, click Connect, otherwise return to the previous pages with the Back button to correct any incorrect information.

成功新增連接之後,資源樹狀結構會自動流覽至代表連線的節點。Once the connection is successfully added, the resource tree will automatically navigate to the node representing the connection. 如果基於某些原因,您也可以在 [已附加的本機 &儲存體帳戶] 下查看。You can also look under Local & AttachedStorage Accounts if for some reason it doesn't. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取您的資料,請參閱疑難排解指南以取得說明。If Storage Explorer was unable to add your connection, or if you can't 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're attaching should autofill. 如果您使用的是自訂端點,則可能不是。If you're using a custom endpoint, then it's possible it may not. 按一下 [下一步]。Click Next.

  4. 請檢查連線摘要,並確定所有資訊都正確無誤。Review the connection summary and make sure all of the information is correct. 如果所有資訊看起來都正確,請按一下 [連接] ,否則請使用 [上一步] 按鈕返回前一頁以更正任何錯誤的資訊。If all of the information looks correct, 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. 您也可以在 [本機 & 連接] → [儲存體帳戶→(已連結的容器) ] 下,→您附加的容器類型的服務節點(如果有的話)。You can also look under Local & AttachedStorage Accounts(Attached Containers)the service node for the type of container you attached if for some reason it doesn't. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取您的資料,請參閱疑難排解指南以取得說明。If Storage Explorer was unable to add your connection, or if you can't 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. 如果所有資訊看起來都正確,請按一下 [連接] ,否則請使用 [上一步] 按鈕返回前一頁,以更正任何不正確的資訊。If all of the information looks correct, click Connect, otherwise return to the previous pages with the Back button to correct any incorrect information.

成功新增連接之後,資源樹狀結構會自動流覽至代表連線的節點。Once the connection is successfully added, the resource tree will automatically navigate to the node representing the connection. 如果基於某些原因,您也可以在 [已附加的本機 &儲存體帳戶] 下查看。You can also look under Local & AttachedStorage Accounts if for some reason it doesn't. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取您的資料,請參閱疑難排解指南以取得說明。If Storage Explorer was unable to add your connection, or if you can't access your data after successfully adding the connection, then consult the troubleshooting guide for help.

附加至本機模擬器Attach to a local emulator

儲存體總管目前支援兩個官方儲存體模擬器:Storage Explorer currently supports two official Storage emulators:

如果您的模擬器正在接聽預設埠,您可以使用 [模擬器-預設埠] 節點(在 [本機 & ] 底下連結→ [儲存體帳戶])來快速存取您的模擬器。If your emulator is listening on the default ports, you can use the Emulator - Default Ports node (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 isn't running on the default ports:

  1. 啟動您的模擬器。Start your emulator. 當您這麼做時,請記下模擬器針對每個服務類型接聽的埠。When you do, make a note of what ports the emulator is listening on for each service type.

    重要

    儲存體總管不會自動啟動您的模擬器。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. 文字方塊的開頭會是大部分模擬器的預設埠值。The text boxes will start with the default port values for most emulators. 檔案會保留空白,因為目前沒有任何一項官方模擬器支援檔案服務。The Files port is left blank, because neither of the official emulators currently support the Files service. 如果您所使用的模擬器支援檔案,則您可以輸入正在使用的通訊埠。If the emulator you're using does support Files, then you can enter the port that is being used. 按一下 [下一步]。Click Next.

  5. 請檢查連線摘要,並確定所有資訊都正確無誤。Review the connection summary and make sure all of the information is correct. 如果所有資訊看起來都正確,請按一下 [連接] ,否則請使用 [上一] 按鈕返回前一頁以更正任何錯誤的資訊。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. 如果基於某些原因,您也可以在 [已附加的本機 &儲存體帳戶] 下查看。You can also look under Local & AttachedStorage Accounts if for some reason it doesn't. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取您的資料,請參閱疑難排解指南以取得說明。If Storage Explorer was unable to add your connection, or if you can't 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

如果您需要存取不在訂用帳戶中的資源,您將需要具有存取權的人員提供資源 URI。If you need access to a resource not in your subscription, you'll need someone with access to give you the resource URI. 登入之後,您可以依照下列步驟,使用 URI 來連線到 Data Lake Store:After signing in, you can connect to Data Lake Store using the URI by following these 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. 按一下 [建立]。Click Create.

    取得 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 don't 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