開始使用儲存體總管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 支援儲存體總管:The following versions of Windows support Storage Explorer:

  • Windows 10 (建議採用)Windows 10 (recommended)
  • Windows 8Windows 8
  • Windows 7Windows 7

針對所有版本的 Windows,儲存體總管需要 .NET Framework 4.6.2 或更新版本。For all versions of Windows, Storage Explorer requires .NET Framework 4.6.2 or later.

下載並安裝Download and install

若要下載並安裝儲存體總管,請參閱Azure 儲存體總管To download and install Storage Explorer, see Azure 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. 如需儲存體總管需要之特定許可權的詳細資訊,請參閱Azure 儲存體總管疑難排解指南For more information about the specific permissions Storage Explorer requires, see the Azure Storage Explorer troubleshooting guide.

  1. 在儲存體總管中,選取 [查看 > 帳戶管理],或選取 [管理帳戶] 按鈕。In Storage Explorer, select View > Account Management or select the Manage Accounts button.

    管理帳戶

  2. 帳戶管理現在會顯示您已登入的所有 Azure 帳戶。ACCOUNT MANAGEMENT now displays all the Azure accounts you've signed in to. 若要連線到另一個帳戶,請選取 [新增帳戶]。To connect to another account, select Add an account.

  3. [連線到 Azure 儲存體] 中,從azure 環境選取要登入國家雲端或 Azure Stack 的 azure 雲端。In Connect to Azure Storage, select an Azure cloud from Azure environment to sign in to a national cloud or an Azure Stack. 選擇您的環境之後,請選取 [下一步]After you choose your environment, select Next.

    用於登入的選項

    儲存體總管會開啟頁面讓您登入。Storage Explorer opens a page for you to sign in. 如需詳細資訊,請參閱將儲存體瀏覽器連線至 Azure Stack 訂用帳戶或儲存體帳戶For more information, see Connect storage explorer to an Azure Stack subscription or storage account.

  4. 使用 Azure 帳戶成功登入之後,與該帳戶相關聯的帳戶和 Azure 訂用帳戶會出現在 [帳戶管理] 底下。After you successfully sign in with an Azure account, the account and the Azure subscriptions associated with that account appear under ACCOUNT MANAGEMENT. 選取 [所有訂用帳戶],以在列出的所有 Azure 訂用帳戶之間切換您的選取專案。Select All subscriptions to toggle your selection between all or none of the listed Azure subscriptions. 選取您想要使用的 Azure 訂用帳戶,然後選取 [套用]****。Select the Azure subscriptions that you want to work with, and then select Apply.

    選取 Azure 訂用帳戶

    EXPLORER會顯示與所選 Azure 訂用帳戶相關聯的儲存體帳戶。EXPLORER displays the storage accounts associated with the selected Azure subscriptions.

    已選取的 Azure 訂用帳戶

附加特定資源Attach a specific resource

有數種方式可連接到儲存體總管中的資源:There are several ways to attach to a resource in Storage Explorer:

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

  1. 選取 [連接] 符號以開啟 [連接到 Azure 儲存體]Select the Connect symbol to open Connect to Azure Storage.

    連接至 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. 登入之後,請返回 [連線至 Azure 儲存體]After you sign in, return to Connect to Azure Storage.

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

  4. 選取 Azure 帳戶和租使用者。Select an Azure account and tenant. 這些值必須能夠存取您想要附加的儲存體資源。These values must have access to the Storage resource you want to attach to. 選取 [下一步] 。Select Next.

  5. 選擇您想要附加的資源類型。Choose the resource type you want to attach. 輸入連接所需的資訊。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 to make sure all the information is correct. 如果是,請選取 [連線]If it is, select Connect. 否則,請選取 [上一步] 返回先前的頁面,以修正任何不正確的資訊。Otherwise, select Back to return to the previous pages to fix any incorrect information.

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

使用連接字串Use a connection string

  1. 選取 [連接] 符號以開啟 [連接到 Azure 儲存體]Select the Connect symbol to open Connect to Azure Storage.

    連接至 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 to make sure all the information is correct. 如果是,請選取 [連線]If it is, select Connect. 否則,請選取 [上一步] 返回先前的頁面,以修正任何不正確的資訊。Otherwise, select Back to return to the previous pages to fix any incorrect information.

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

使用共用存取簽章 URIUse a shared access signature URI

  1. 選取 [連接] 符號以開啟 [連接到 Azure 儲存體]Select the Connect symbol to open Connect to Azure Storage.

    連接至 Azure 儲存體選項

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

  3. 為您的連線選擇 [顯示名稱],然後輸入您的共用存取簽章 URI。Choose a display name for your connection and enter your shared access signature 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 to make sure all the information is correct. 如果是,請選取 [連線]If it is, select Connect. 否則,請選取 [上一步] 返回先前的頁面,以修正任何不正確的資訊。Otherwise, select Back to return to the previous pages to fix any incorrect information.

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

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

  1. 選取 [連接] 符號以開啟 [連接到 Azure 儲存體]Select the Connect symbol to open Connect to Azure Storage.

    連接至 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 to make sure all the information is correct. 如果是,請選取 [連線]If it is, select Connect. 否則,請選取 [上一步] 返回先前的頁面,以修正任何不正確的資訊。Otherwise, select Back to return to the previous pages to fix any incorrect information.

成功新增連接之後,資源樹狀結構就會移至代表連接的節點。After the connection is successfully added, the resource tree goes to the node that represents the connection. 資源會顯示在 [本機 & > 連結的儲存體帳戶] 之下。The resource appears under Local & Attached > Storage Accounts. 如果儲存體總管無法新增您的連線,或如果您在成功新增連線之後無法存取資料,請參閱Azure 儲存體總管疑難排解指南If Storage Explorer couldn't add your connection, or if you can't access your data after successfully adding the connection, see the Azure Storage Explorer 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 to access your emulator. 在 [本機 & > 連結的儲存體帳戶] 下尋找 [模擬器-預設埠]。Look for Emulator - Default Ports under Local & Attached > Storage Accounts.

如果您想要使用不同的名稱來連接,或如果您的模擬器不是在預設埠上執行,請遵循下列步驟: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. 輸入命令AzureStorageEmulator.exe status以顯示每個服務類型的埠。Enter the command AzureStorageEmulator.exe status to display the ports for each service type.

    重要

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

  2. 選取 [連接] 符號以開啟 [連接到 Azure 儲存體]Select the Connect symbol to open Connect to Azure Storage.

    連接至 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. 附加至本機模擬器會建議大部分模擬器的預設埠值。Attach to a Local Emulator suggests the default port values for most emulators. 檔案是空白的,因為目前沒有支援檔案服務的官方模擬器。Files port is 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 to use. 然後,選取 [下一步] 。Then, select Next.

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

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

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

您可以使用連接字串連接到 Azure Cosmos DB,而不是透過 Azure 訂用帳戶管理 Azure Cosmos DB 帳戶。Instead of managing Azure Cosmos DB accounts through an Azure subscription, you can connect to Azure Cosmos DB by using a connection string. 若要連接,請遵循下列步驟:To connect, follow these steps:

  1. EXPLORER底下,展開 [本機 & 附加],以滑鼠右鍵按一下 [ Cosmos DB 帳戶],然後選取 [連接到 Azure Cosmos DB]Under EXPLORER, expand Local & Attached, right-click 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. 如需如何取得連接字串的資訊,請參閱管理 Azure Cosmos 帳戶For information about how to retrieve the connection string, see Manage an Azure Cosmos account.

    連接字串

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

您可以存取不在訂用帳戶中的資源。You can access a resource that's not in your subscription. 您需要有權存取該資源的人員,才能提供資源 URI。You need someone who has access to that resource to give you the resource URI. 登入之後,使用 URI 來連線到 Data Lake Store。After you sign in, connect to Data Lake Store by using the URI. 若要連接,請遵循下列步驟:To connect, follow these steps:

  1. 在 [ EXPLORER] 底下,展開 [本機 & 連接]。Under EXPLORER, expand Local & Attached.

  2. 以滑鼠右鍵按一下 [ Data Lake Storage Gen1],然後選取 [連接到 Data Lake Storage Gen1]Right-click Data Lake Storage Gen1, and select Connect to Data Lake Storage Gen1.

    連接到 Data Lake Store 內容功能表

  3. 輸入 URI,然後選取 [確定]Enter the URI, and then select OK. 您的 Data Lake Store 會顯示在 [ Data Lake Storage] 之下。Your Data Lake Store appears under Data Lake Storage.

    連接到 Data Lake Store 結果

這個範例會使用 Data Lake Storage Gen1。This example uses Data Lake Storage Gen1. Azure Data Lake Storage Gen2 現在已可供使用。Azure Data Lake Storage Gen2 is now available. 如需詳細資訊,請參閱什麼是 Azure Data Lake Storage Gen1For more information, see What is Azure Data Lake Storage Gen1.

在儲存體總管中產生共用存取簽章Generate a shared access signature in Storage Explorer

帳戶層級共用存取簽章Account level shared access signature

  1. 以滑鼠右鍵按一下您要共用的儲存體帳戶,然後選取 [取得共用存取簽章]。Right-click the storage account you want share, and then select Get Shared Access Signature.

    取得共用存取簽章內容功能表選項

  2. 在 [共用存取簽章] 中,指定您要用於帳戶的時間範圍和許可權,然後選取 [建立]。In Shared Access Signature, specify the time frame and permissions you want for the account, and then select Create.

    取得共用存取簽章

  3. 連接字串或原始查詢字串複製到您的剪貼簿。Copy either the Connection string or the raw Query string to your clipboard.

服務層級共用存取簽章Service level shared access signature

您可以在服務層級取得共用存取簽章。You can get a shared access signature at the service level. 如需詳細資訊,請參閱取得 blob 容器的 SASFor more information, see Get the SAS for a blob container.

搜尋儲存體帳戶Search for storage accounts

若要尋找儲存體資源,您可以在 [ EXPLORER ] 窗格中搜尋。To find a storage resource, you can search in the EXPLORER pane.

當您在搜尋方塊中輸入文字時,儲存體總管會顯示符合您在該點上輸入之搜尋值的所有資源。As you enter text in the search box, Storage Explorer displays all resources that match the search value you've entered up to that point. 這個範例會示範如何搜尋端點This example shows a search for endpoints:

儲存體帳戶搜尋

注意

若要加速搜尋,請使用 [帳戶管理] 取消選取任何不包含您要搜尋之專案的訂閱。To speed up your search, use Account Management 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