將儲存體總管連線到 Azure Stack 訂用帳戶或儲存體帳戶Connect storage explorer to an Azure Stack subscription or a storage account

適用於:Azure Stack 整合式系統和 Azure Stack 開發套件Applies to: Azure Stack integrated systems and Azure Stack Development Kit

在本文中,您將了解如何使用 Azure 儲存體總管連線到 Azure Stack 訂用帳戶和儲存體帳戶。In this article, you'll learn how to connect to your Azure Stack subscriptions and storage accounts using Azure Storage Explorer. 儲存體總管是一個獨立應用程式,可讓您在 Windows、macOS 和 Linux 上輕鬆使用 Azure Stack 儲存體資料。Storage Explorer is a standalone app that enables you to easily work with Azure Stack storage data on Windows, macOS, and Linux.

注意

有數個工具可協助您將資料移動至 Azure Stack 儲存體,以及從 Azure Stack 儲存體移動資料。There are several tools available to move data to and from Azure Stack storage. 如需詳細資訊,請參閱 Azure Stack 儲存體適用的資料傳輸工具For more information, see Data transfer tools for Azure Stack storage.

如果尚未安裝,請下載儲存體總管並加以安裝。If not yet installed, download Storage Explorer and install it.

連線到 Azure Stack 訂用帳戶或儲存體帳戶之後,您可以使用 Azure 儲存體總管文章來處理 Azure Stack 資料。After you connect to an Azure Stack subscription or storage account, you can use the Azure Storage Explorer articles to work with your Azure Stack data.

準備連線至 Azure StackPrepare for connecting to Azure Stack

您必須可以直接存取 Azure Stack 或 VPN 連線,儲存體總管才能存取 Azure Stack 訂用帳戶。You need direct access to Azure Stack or a VPN connection for Storage Explorer to access the Azure Stack subscription. 若要深入了解如何設定 Azure Stack 的 VPN 連線,請參閱使用 VPN 連線到 Azure StackTo learn how to set up a VPN connection to Azure Stack, see Connect to Azure Stack with VPN.

對於 Azure Stack 開發套件 (ASDK),您必須匯出 Azure Stack 授權單位根憑證。For the Azure Stack Development Kit (ASDK), you need to export the Azure Stack authority root certificate.

注意

對於 ASDK,如果您要透過 VPN 連線至 ASDK,請不要使用在 VPN 設定程序期間建立的根憑證 (CA.cer)。For the ASDK, if you're connecting to your ASDK via VPN, don't use the root certificate (CA.cer) that was created during the VPN setup process. 這是 DER 編碼的憑證,其不會允許儲存體總管擷取您的 Azure Stack 訂用帳戶。This is a DER-encoded certificate and it won't allow Storage Explorer to retrieve your Azure Stack subscriptions. 請依照下列步驟匯出 Base-64 編碼憑證,與儲存體總管搭配使用。Follow the steps below to export a Base-64 encoded certificate to use with Storage Explorer.

匯出 Azure Stack 憑證後再匯入Export and then import the Azure Stack certificate

匯出 ASDK 的 Azure Stack 憑證後再匯入。Export and then import Azure Stack certificate for the ASDK. 整合式系統會公開簽署憑證,因此不必進行此步驟。For integrated systems, the certificate is publicly signed and this step isn't necessary.

  1. 在 Azure Stack 主機電腦或可使用 VPN 連線到 Azure Stack 的本機電腦上開啟 mmc.exeOpen mmc.exe on an Azure Stack host machine, or a local machine with a VPN connection to Azure Stack.

  2. 在 [檔案] 中,選取 [新增/移除嵌入式管理單元] 。In File, select Add/Remove Snap-in. 在 [可用的嵌入式管理單元] 中,選取 [憑證] 。Select Certificates in Available snap-ins.

  3. 選取 [電腦帳戶] ,然後選取 [下一步] 。Select Computer account, and then select Next. 選取 [本機電腦] ,然後選取 [完成] 。Select Local computer, and then select Finish.

  4. Console Root\Certificated (Local Computer)\Trusted Root Certification Authorities\Certificates 之下尋找 AzureStackSelfSignedRootCertUnder Console Root\Certificated (Local Computer)\Trusted Root Certification Authorities\Certificates find AzureStackSelfSignedRootCert.

    透過 mmc.exe 載入 Azure Stack 根憑證

  5. 以滑鼠右鍵按一下憑證,選取 [所有工作] > [匯出] ,然後依照指示,匯出 Base-64 encoded X.509 (.CER) 憑證。Right-click the certificate, select All Tasks > Export, and then follow the instructions to export the certificate with Base-64 encoded X.509 (.CER).

    下一個步驟中會使用所匯出的憑證。The exported certificate will be used in the next step.

  6. 啟動儲存體總管。Start Storage Explorer. 如果您看到 [連線至 Azure 儲存體] 對話方塊,請將它取消。If you see the Connect to Azure Storage dialog box, cancel it.

  7. 在 [編輯] 功能表上,選取 [SSL 憑證] ,然後選取 [匯入憑證] 。On the Edit menu, select SSL Certificates, and then select Import Certificates. 使用檔案選擇器對話方塊來尋找和開啟您在上一個步驟中瀏覽的憑證。Use the file picker dialog box to find and open the certificate that you exported in the previous step.

    匯入憑證之後,系統會提示您重新啟動儲存體總管。After importing the certificate, you're prompted to restart Storage Explorer.

    將憑證匯入儲存體總管中

  8. 儲存體總管重新啟動後,請選取 [編輯] 功能表,然後查看是否已選取 [目標 Azure Stack API] 。After Storage Explorer restarts, select the Edit menu, and check to see if Target Azure Stack APIs is selected. 若未選取,請選取 [目標 Azure Stack] ,然後重新啟動儲存體總管,變更才會生效。If it isn't, select Target Azure Stack, and then restart Storage Explorer for the change to take effect. 不需要進行此設定,即可相容於 Azure Stack 環境。This configuration is required for compatibility with your Azure Stack environment.

    確保已選取目標 Azure Stack

使用 Azure AD 連線到 Azure Stack 訂用帳戶Connect to an Azure Stack subscription with Azure AD

使用下列步驟將儲存體總管連線到 Azure Stack 訂用帳戶,其屬於 Azure Active Directory (Azure AD) 帳戶。Use the following steps to connect Storage Explorer to an Azure Stack subscription, which belongs to an Azure Active Directory (Azure AD) account.

  1. 在儲存體總管的左側窗格中,選取 [管理帳戶] 。In the left pane of Storage Explorer, select Manage Accounts.
    您已登入的所有 Microsoft 訂用帳戶隨即顯示。All the Microsoft subscription that you signed in are displayed.

  2. 若要連線到 Azure Stack 訂用帳戶,請選取 [新增帳戶] 。To connect to the Azure Stack subscription, select Add an account.

    新增 Azure Stack 帳戶

  3. 在 [連線到 Azure 儲存體] 對話方塊的 [Azure 環境] 下,選取 [Azure] 、[Azure China 21Vianet] 、[Azure 德國] 、[Azure 美國政府] 或 [新增環境] 。In the Connect to Azure Storage dialog box, under Azure environment, select Azure, Azure China 21Vianet, Azure Germany, Azure US Government, or Add New Environment. 這取決於所使用的 Azure Stack 帳戶。This depends on the Azure Stack account being used. 選取 [登入] ,使用與至少一個作用中 Azure Stack 訂用帳戶相關聯的 Azure Stack 帳戶登入。Select Sign in to sign in with the Azure Stack account associated with at least one active Azure Stack subscription.

    連線到 Azure 儲存體

  4. 成功使用 Azure Stack 帳戶登入後,左窗格會填入與該帳戶相關聯的 Azure Stack 訂用帳戶。After you successfully sign in with an Azure Stack account, the left pane is populated with the Azure Stack subscriptions associated with that account. 選取您想要使用的 Azure Stack 訂用帳戶,然後選取 [套用] 。Select the Azure Stack subscriptions that you want to work with, and then select Apply. (選取或清除 [所有訂用帳戶] 核取方塊切換開關,可選取全部或不選取任何列出的 Azure Stack 訂用帳戶。)(Selecting or clearing the All subscriptions check box toggles selecting all or none of the listed Azure Stack subscriptions.)

    在填妥 [自訂雲端環境] 對話方塊後選取 Azure Stack 訂用帳戶

    左窗格會顯示與所選 Azure Stack 訂用帳戶相關聯的儲存體帳戶。The left pane displays the storage accounts associated with the selected Azure Stack subscriptions.

    包含 Azure Stack 訂用帳戶的儲存體帳戶清單

使用 AD FS 帳戶連線到 Azure Stack 訂用帳戶Connect to an Azure Stack subscription with AD FS account

注意

Azure 同盟服務 (AD FS) 登入體驗支援具有 Azure Stack 1804 或更新更新的儲存體總管 1.2.0 或更新版本。The Azure Federated Service (AD FS) sign-in experience supports Storage Explorer 1.2.0 or newer versions with Azure Stack 1804 or newer update. 使用下列步驟將儲存體總管連線到 Azure Stack 訂用帳戶,其屬於 AD FS 帳戶。Use the following steps to connect Storage Explorer to an Azure Stack subscription which belongs to an AD FS account.

  1. 選取 [管理帳戶] 。Select Manage Accounts. 總管會列出您已登入的 Microsoft 訂用帳戶。The explorer lists the Microsoft subscriptions that you signed in to.

  2. 選取 [新增帳戶] 以連線到 Azure Stack 訂用帳戶。Select Add an account to connect to the Azure Stack subscription.

    新增帳戶 - 儲存體總管

  3. 選取 [下一步] 。Select Next. 在 [連線至 Azure 儲存體] 對話方塊的 [Azure 環境] 底下,選取 [使用自訂環境] ,然後按 [下一步] 。In the Connect to Azure Storage dialog box, under Azure environment, select Use Custom Environment, then click Next.

    連線到 Azure 儲存體

  4. 輸入 Azure Stack 自訂環境的必要資訊。Enter the required information of Azure Stack custom environment.

    欄位Field 注意Notes
    環境名稱Environment name 使用者可以自訂此欄位。The field can be customized by user.
    Azure Resource Manager 端點Azure Resource Manager endpoint Azure Stack 開發套件的 Azure Resource Manager 資源端點範例。The samples of Azure Resource Manager resource endpoints of Azure Stack Development Kit.
    針對操作人員: https://adminmanagement.local.azurestack.externalFor operators: https://adminmanagement.local.azurestack.external
    針對使用者: https://management.local.azurestack.externalFor users: https://management.local.azurestack.external

    如果您使用 Azure Stack 整合式系統且不知道您的管理端點,請連絡您的操作人員。If you're working on Azure Stack integrated system and don't know your management endpoint, contact your operator.

    新增帳戶 - 自訂環境

  5. 選取 [登入] ,以連線至與至少一個作用中 Azure Stack 訂用帳戶相關聯的 Azure Stack 帳戶。Select Sign in to connect to the Azure Stack account that's associated with at least one active Azure Stack subscription.

  6. 選取您想要使用的 Azure Stack 訂用帳戶,然後選取 [套用] 。Select the Azure Stack subscriptions that you want to work with, then select Apply.

    帳戶管理

    左窗格會顯示與所選 Azure Stack 訂用帳戶相關聯的儲存體帳戶。The left pane displays the storage accounts associated with the selected Azure Stack subscriptions.

    相關聯的訂用帳戶清單

連線到 Azure Stack 儲存體帳戶Connect to an Azure Stack storage account

您也可以使用儲存體帳戶名稱和金鑰配對來連線到 Azure Stack 儲存體帳戶。You can also connect to an Azure Stack storage account using storage account name and key pair.

  1. 在儲存體總管的左側窗格中,選取 [管理帳戶]。In the left pane of Storage Explorer, select Manage Accounts. 隨即會顯示您已登入的所有 Microsoft 帳戶。All the Microsoft accounts that you signed into are displayed.

    新增帳戶 - 儲存體總管

  2. 若要連線到 Azure Stack 訂用帳戶,請選取 [新增帳戶] 。To connect to the Azure Stack subscription, select Add an account.

    新增帳戶 - 連線至 Azure 儲存體

  3. 在 [連線到 Azure 儲存體] 對話方塊中,選取 [使用儲存體帳戶名稱和金鑰] 。In the Connect to Azure Storage dialog box, select Use a storage account name and key.

  4. 在 [帳戶名稱] 中輸入您的帳戶名稱,並在 [帳戶金鑰] 文字方塊中貼入帳戶金鑰。Input your account name in the Account name and paste the account key into the Account key text box. 然後,在 [儲存體端點網域] 中選取 [其他 (在下面輸入)] 並輸入 Azure Stack 端點。Then, select Other (enter below) in Storage endpoints domain and input the Azure Stack endpoint.

    Azure Stack 端點包含兩個部分:區域的名稱和 Azure Stack 網域。An Azure Stack endpoint includes two parts: the name of a region and the Azure Stack domain. 在 Azure Stack 開發套件中,預設端點是 local.azurestack.externalIn the Azure Stack Development Kit, the default endpoint is local.azurestack.external. 如果不確定您的端點,請連絡您的雲端系統管理員。Contact your cloud admin if you're not sure about your endpoint.

    連結名稱和金鑰

  5. 選取 [ 連接]。Select Connect.

  6. 成功連結儲存體帳戶之後,顯示的儲存體帳戶會在其名稱後面附加 (外部,其他)。After the storage account is successfully attached, the storage account is displayed with (External, Other) appended to its name.

    VMWINDISK

後續步驟Next steps