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

總覽Overview

Microsoft Azure 儲存體總管是獨立應用程式,可讓您輕鬆地使用 Windows、macOS 和 Linux 上的 Azure 儲存體資料。Microsoft Azure Storage Explorer is a standalone app that makes it easy to work with Azure Storage data on Windows, macOS, and Linux. 在本文中,您將瞭解幾種連接和管理 Azure 儲存體帳戶的方式。In this article, you'll 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 later 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

注意

若要在登入之後完整存取資源,儲存體總管需要管理(Azure Resource Manager)和資料層許可權。To fully access resources after you sign in, Storage Explorer requires both management (Azure Resource Manager) and data layer permissions. 這表示您需要 Azure Active Directory (Azure AD)許可權,這可讓您存取儲存體帳戶、帳戶中的容器,以及容器中的資料。This means that you need Azure Active Directory (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 have permissions only at the data layer, consider adding a resource through Azure AD. 如需儲存體總管需要之特定許可權的詳細資訊,請參閱疑難排解指南For more information about the specific 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 in to a national cloud or an Azure Stack, select the Azure environment drop-down list to choose the Azure cloud you want to use. 選擇您的環境之後,請選取 [登] 按鈕。After you've chosen your environment, select 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 訂用帳戶,然後選取 [套用]。Select the Azure subscriptions that you want to work with, and then select Apply. (選取 [所有訂用帳戶] 會在列出的所有 Azure 訂用帳戶之間切換您的選擇。)(Selecting All subscriptions toggles your selection between 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 multiple ways to attach to a resource in Storage Explorer:

透過 Azure AD 新增資源Add a resource via Azure AD

  1. 選取左側垂直工具列上的 [連接] 按鈕,以開啟 [連接] 對話方塊:Open the Connect dialog box by selecting the Connect button on the vertical toolbar on the left:

    連接至 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 you sign in, return to the Connect dialog box.

  3. 選取 [透過Azure Active Directory (Azure AD)新增資源],然後選取 [下一步]Select Add a resource via Azure Active Directory (Azure AD), and then select Next.

  4. 選取可存取您想要附加之儲存體資源的 Azure 帳戶和租使用者。Select the Azure account and tenant that have access to the Storage resource you want to attach to. 選取 [下一步]。Select Next.

  5. 選擇您想要附加的資源類型,然後輸入連接所需的資訊。Choose the resource type you want to attach, and then enter the information needed to connect. 您在此頁面上輸入的資訊取決於您要新增的資源類型。The information you enter on this page depends on what type of resource you're adding. 請務必選擇正確的資源類型。Make sure to choose the correct type of resource. 輸入必要資訊之後,請選取 [下一步]After you've entered the required information, select Next.

  6. 請檢查連線摘要,並確定所有資訊都正確無誤。Review the connection summary and make sure all the information is correct. 如果是,請選取 [連線]If it is, select Connect. 否則,請使用 [上一步] 按鈕返回先前的頁面,以修正任何不正確的資訊。Otherwise, use the Back button to return to the previous pages to fix any incorrect information.

成功新增連接之後,資源樹狀結構會自動移至代表連接的節點。After the connection is successfully added, the resource tree automatically goes to the node that represents the connection. 如果未移至該節點,請查看 [本機 & > 連結的儲存體帳戶 > (已連結的容器) > ] [Blob 容器]。If it doesn't go to that node, look under Local & Attached > Storage Accounts > (Attached Containers) > Blob Containers. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取資料,請參閱疑難排解指南If Storage Explorer couldn't add your connection, or if you can't access your data after successfully adding the connection, see the troubleshooting guide.

使用連接字串Use a connection string

  1. 選取左側垂直工具列上的 [連接] 按鈕,以開啟 [連接] 對話方塊:Open the Connect dialog box by selecting the Connect button on the vertical toolbar on the left:

    連接至 Azure 儲存體選項

  2. 選取 [使用連接字串],然後選取 [下一步]Select Use a connection string, and then select Next.

  3. 為您的連線選擇 [顯示名稱],然後輸入您的連接字串。Choose a display name for your connection and enter your connection string. 然後,選取 [下一步]。Then, select Next.

  4. 請檢查連線摘要,並確定所有資訊都正確無誤。Review the connection summary and make sure all the information is correct. 如果是,請選取 [連線]If it is, select Connect. 否則,請使用 [上一步] 按鈕返回先前的頁面,以修正任何不正確的資訊。Otherwise, use the Back button to return to the previous pages to fix any incorrect information.

成功新增連接之後,資源樹狀結構會自動移至代表連接的節點。After the connection is successfully added, the resource tree automatically goes to the node that represents the connection. 如果不是移至該節點,請查看 [本機 & 連接 > 的儲存體帳戶]。If it doesn't go to that node, look under Local & Attached > Storage Accounts. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取資料,請參閱疑難排解指南If Storage Explorer couldn't add your connection, or if you can't access your data after successfully adding the connection, see the troubleshooting guide.

使用 SAS URIUse a SAS URI

  1. 選取左側垂直工具列上的 [連接] 按鈕,以開啟 [連接] 對話方塊:Open the Connect dialog box by selecting the Connect button on the vertical toolbar on the left:

    連接至 Azure 儲存體選項

  2. 選取 [使用共用存取簽章(SAS) URI],然後選取 [下一步]Select Use a shared access signature (SAS) URI, and then select Next.

  3. 為您的連線選擇 [顯示名稱],然後輸入您的 SAS URI。Choose a display name for your connection and enter your SAS URI. 您要附加之資源類型的服務端點應該自動填入。The service endpoint for the type of resource you're attaching should autofill. 如果您使用的是自訂端點,則可能不是。If you're using a custom endpoint, it's possible it might not. 選取 [下一步]。Select Next.

  4. 請檢查連線摘要,並確定所有資訊都正確無誤。Review the connection summary and make sure all the information is correct. 如果是,請選取 [連線]If it is, select Connect. 否則,請使用 [上一步] 按鈕返回先前的頁面,以修正任何不正確的資訊。Otherwise, use the Back button to return to the previous pages to fix any incorrect information.

成功新增連接之後,資源樹狀結構會自動移至代表連接的節點。After the connection is successfully added, the resource tree automatically goes to the node that represents the connection. 如果未移至該節點,請在 [本機 & > 連結的儲存體帳戶 > (已連結的容器) > ] 下,查看您所附加容器類型的服務節點If it doesn't go to that node, look under Local & Attached > Storage Accounts > (Attached Containers) > the service node for the type of container you attached. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取資料,請參閱疑難排解指南If Storage Explorer couldn't add your connection, or if you can't access your data after successfully adding the connection, see the troubleshooting guide.

使用名稱和金鑰Use a name and key

  1. 選取左側垂直工具列上的 [連接] 按鈕,以開啟 [連接] 對話方塊:Open the Connect dialog box by selecting the Connect button on the vertical toolbar on the left:

    連接至 Azure 儲存體選項

  2. 選取 [使用儲存體帳戶名稱和金鑰],然後選取 [下一步]Select Use a storage account name and key, and then select Next.

  3. 選擇連接的顯示名稱。Choose a display name for your connection.

  4. 輸入您的儲存體帳戶名稱和它的其中一個存取金鑰。Enter your storage account name and either of its access keys.

  5. 選擇要使用的儲存體網域,然後選取 [下一步]Choose the Storage domain to use and then select Next.

  6. 請檢查連線摘要,並確定所有資訊都正確無誤。Review the connection summary and make sure all the information is correct. 如果是,請選取 [連線]If it is, select Connect. 否則,請使用 [上一步] 按鈕返回先前的頁面,以修正任何不正確的資訊。Otherwise, use the Back button to return to the previous pages to fix any incorrect information.

成功新增連接之後,資源樹狀結構會自動移至代表連接的節點。After the connection is successfully added, the resource tree automatically goes to the node that represents the connection. 如果不是移至該節點,請查看 [本機 & 連接 > 的儲存體帳戶]。If it doesn't go to that node, look under Local & Attached > Storage Accounts. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取資料,請參閱疑難排解指南If Storage Explorer couldn't add your connection, or if you can't access your data after successfully adding the connection, see the troubleshooting guide.

附加至本機模擬器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 & Attached > Storage 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, follow these steps:

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

    重要

    儲存體總管不會自動啟動您的模擬器。Storage Explorer doesn't automatically start your emulator. 您必須以手動方式啟動它。You must start it manually.

  2. 選取左側垂直工具列上的 [連接] 按鈕,以開啟 [連接] 對話方塊:Open the Connect dialog box by selecting the Connect button on the vertical toolbar on the left:

    連接至 Azure 儲存體選項

  3. 選取 [附加至本機模擬器],然後選取 [下一步]Select Attach to a local emulator, and then select Next.

  4. 為您的連線選擇 [顯示名稱],並針對每個服務類型輸入模擬器正在接聽的埠。Choose a display name for your connection and enter 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 box is left blank, because neither of the official emulators currently support the Files service. 如果您所使用的模擬器支援檔案,您可以輸入正在使用的埠。If the emulator you're using does support Files, you can enter the port that's being used. 然後,選取 [下一步]。Then, select Next.

  5. 請檢查連線摘要,並確定所有資訊都正確無誤。Review the connection summary and make sure all the information is correct. 如果是,請選取 [連線]If it is, select Connect. 否則,請使用 [上一步] 按鈕返回先前的頁面,以修正任何不正確的資訊。Otherwise, use the Back button to return to the previous pages to fix any incorrect information.

成功新增連接之後,資源樹狀結構會自動移至代表連接的節點。After the connection is successfully added, the resource tree automatically goes to the node that represents the connection. 如果不是移至該節點,請查看 [本機 & 連接 > 的儲存體帳戶]。If it doesn't go to that node, look under Local & Attached > Storage Accounts. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取資料,請參閱疑難排解指南If Storage Explorer couldn't add your connection, or if you can't access your data after successfully adding the connection, see the troubleshooting guide.

使用連接字串連線到 Azure Cosmos DB 帳戶Connect to an Azure Cosmos DB account by using a connection string

除了透過 Azure 訂用帳戶管理 Azure Cosmos DB 帳戶以外,您也可以使用連接字串連接到 Azure Cosmos DB。As an alternative to managing Azure Cosmos DB accounts through an Azure subscription, you can also connect to Azure Cosmos DB by using a connection string. 若要這樣做,請遵循下列步驟:To do this, follow these steps:

  1. 在資源樹狀結構的左側,展開 [本機] 和[已附加],以滑鼠右鍵按一下 [ Azure Cosmos DB 帳戶],然後選取 [連接到 Azure Cosmos DB]On the left side of the resource tree, expand Local and Attached, right-click Azure Cosmos DB Accounts, and select Connect to Azure Cosmos DB.

    使用連接字串連線到 Azure Cosmos DB

  2. 選取 [Azure Cosmos DB API],輸入您的連接字串資料,然後選取 [確定] 以連接 Azure Cosmos DB 帳戶。Select the Azure Cosmos DB API, enter your Connection String data, and then select OK to connect the Azure Cosmos DB account. 如需有關如何抓取連接字串的詳細資訊,請參閱取得連接字串For information about how to retrieve the connection string, see Get the connection string.

    連接字串

以 URI 連線至 Azure Data Lake StoreConnect to Azure Data Lake Store by URI

如果您想要存取不在訂用帳戶中的資源,您將需要可存取該資源的人員,以提供您資源 URI。If you want to access a resource that's not in your subscription, you'll need someone who can access that resource to give you the resource URI. 登入之後,您可以使用 URI 來連線到 Data Lake Store。After you sign in, you can connect to Data Lake Store by using the URI. 若要這樣做,請遵循下列步驟:To do this, follow these steps:

  1. 開啟儲存體總管。Open Storage Explorer.

  2. 在左窗格中,展開 [本機與已連結的資源]。In the left pane, expand Local and Attached.

  3. 以滑鼠右鍵按一下 [ Data Lake Store]。Right-click Data Lake Store. 從快捷方式功能表中,選取 [連接到 Data Lake Store]From the shortcut menu, select Connect to Data Lake Store.

    連接到 Data Lake Store 內容功能表

  4. 輸入 URI。Enter the URI. 此工具會移至您剛才輸入的 URL 位置。The tool goes to the location of the URL that 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 you want for the account, and then select Create.

    取得 SAS 對話方塊

  3. 您現在可以將連接字串或原始查詢字串複製到剪貼簿。You can now copy either 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:

儲存體帳戶搜尋

注意

若要加快搜尋速度,請使用 [帳戶管理] 面板取消選取任何不包含您要搜尋之專案的訂用帳戶。To speed up your search, use the Account Management panel to deselect any subscriptions that don't contain the item you're searching for. 您也可以在節點上按一下滑鼠右鍵,然後選取 [從這裡搜尋],開始從特定節點進行搜尋。You can also right-click a node and select Search From Here to start searching from a specific node.

後續步驟Next steps