將儲存體總管連線至 Azure Stack Hub 訂用帳戶或儲存體帳戶Connect Storage Explorer to an Azure Stack Hub subscription or a storage account

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

注意

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

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

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

準備連線至 Azure Stack HubPrepare for connecting to Azure Stack Hub

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

注意

對於 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 Hub 訂用帳戶。This is a DER-encoded certificate and it won't allow Storage Explorer to retrieve your Azure Stack Hub subscriptions. 請使用下列步驟匯出 Base-64 編碼憑證,與儲存體總管搭配使用。Use the following steps to export a Base-64 encoded certificate to use with Storage Explorer.

對於已中斷連線和 ASDK 的整合式系統,建議您使用內部企業憑證授權單位匯出 Base-64 格式的根憑證,然後將其匯入 Azure 儲存體總管中。For integrated systems that are disconnected and for the ASDK, the recommendation is to use an internal enterprise Certificate Authority to export the root certificate in a Base-64 format and then import it into Azure Storage Explorer.

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

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

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

  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 Hub 根憑證

  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 Hub API]。After Storage Explorer restarts, select the Edit menu, and check to see if Target Azure Stack Hub APIs is selected. 若未選取,請選取 [目標 Azure Stack Hub],然後重新啟動儲存體總管,變更才會生效。If it isn't, select Target Azure Stack Hub, and then restart Storage Explorer for the change to take effect. 必須進行此設定,才能與 Azure Stack Hub 環境相容。This configuration is required for compatibility with your Azure Stack Hub environment.

    確定已選取目標 Azure Stack Hub

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

使用下列步驟將儲存體總管連線至 Azure Stack Hub 訂用帳戶,此訂用帳戶屬於 Azure Active Directory (Azure AD) 帳戶。Use the following steps to connect Storage Explorer to an Azure Stack Hub 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 Hub 訂用帳戶,請選取 [新增帳戶]。To connect to the Azure Stack Hub subscription, select Add an account.

    新增 Azure Stack Hub 帳戶

  3. 在 [連線到 Azure 儲存體] 對話方塊的 [Azure 環境] 下,選取 [Azure]、[Azure China 21Vianet]、[Azure 德國]、[Azure US Gov] 或 [新增環境]。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 Hub 帳戶。This depends on the Azure Stack Hub account being used. 選取 [登入],使用與至少一個作用中 Azure Stack Hub 訂用帳戶相關聯的 Azure Stack Hub 帳戶登入。Select Sign in to sign in with the Azure Stack Hub account associated with at least one active Azure Stack Hub subscription.

    連線到 Azure 儲存體

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

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

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

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

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

注意

Azure 同盟服務 (AD FS) 登入體驗支援具有 Azure Stack Hub 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 Hub 1804 or newer update.

使用下列步驟將儲存體總管連線至 Azure Stack Hub 訂用帳戶,此訂用帳戶屬於 AD FS 帳戶。Use the following steps to connect Storage Explorer to an Azure Stack Hub 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 Hub 訂用帳戶。Select Add an account to connect to the Azure Stack Hub 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 Hub 自訂環境的必要資訊。Enter the required information of Azure Stack Hub 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 Hub 整合式系統,但不知道您的管理端點,請連絡操作員。If you're working on Azure Stack Hub integrated system and don't know your management endpoint, contact your operator.

    新增帳戶 - 自訂環境

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

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

    帳戶管理

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

    相關聯的訂用帳戶清單

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

您也可以使用儲存體帳戶名稱和金鑰組來連線至 Azure Stack Hub 儲存體帳戶。You can also connect to an Azure Stack Hub 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 Hub 訂用帳戶,請選取 [新增帳戶]。To connect to the Azure Stack Hub 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 Hub 端點。Then, select Other (enter below) in Storage endpoints domain and input the Azure Stack Hub endpoint.

    Azure Stack Hub 端點包含兩個部分:區域的名稱和 Azure Stack Hub 網域。An Azure Stack Hub endpoint includes two parts: the name of a region and the Azure Stack Hub 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