如何在 Azure Stack Hub 安裝事件中樞How to install Event Hubs on Azure Stack Hub

本文說明如何下載和安裝事件中樞資源提供者,以便提供給客戶進行訂閱。This article shows you how to download and install the Event Hubs resource provider, making it available to offer to customers for subscription. 您也必須先完成 事件中樞安裝必要條件 ,才能繼續進行。You must also complete the Event Hubs install prerequisites before continuing.

下載套件Download packages

您必須先使用 Marketplace 管理功能來下載資源提供者及其相依套件,才可以在 Azure Stack Hub 上安裝事件中樞。Before you can install Event Hubs on Azure Stack Hub, you must download the resource provider and its dependent packages using the Marketplace Management feature. 如果您不熟悉 Marketplace 管理,請花點時間檢閱從 Azure 下載 Marketplace 項目並發佈至 Azure Stack HubIf you're not familiar with Marketplace Management, spend time reviewing Download marketplace items from Azure and publish to Azure Stack Hub. 本節將逐步引導您完成從 Azure marketplace 下載專案的流程。This section walks you through the process of downloading items from the Azure marketplace.

注意

下載流程可能需要 30 分鐘到 2 小時,視 Azure Stack Hub 執行個體上的網路延遲和現有套件而定。The download process can take 30 minutes to 2 hours, depending on the network latency and existing packages on your Azure Stack Hub instance.

在已連線的案例中,您可以直接從 Azure marketplace 將專案下載至 Azure Stack Hub marketplace:For a connected scenario, you download the items from the Azure marketplace directly to the Azure Stack Hub marketplace:

  1. 登入 Azure Stack Hub 系統管理員入口網站。Sign in to the Azure Stack Hub administrator portal.
  2. 選取左側的 Marketplace 管理Select Marketplace Management on the left.
  3. 選取 [資源提供者] 。Select Resource providers.
  4. 選取 [+ 從 Azure 加入] 。Select + Add from Azure.
  5. 在搜尋列中搜尋「事件中樞」。Search for "Event Hubs" using the search bar.
  6. 選取搜尋結果中的「事件中樞」資料列。Select the "Event Hubs" row on the search results.
  7. 在「事件中樞」下載頁面上,選取想要安裝的事件中樞版本,然後選取頁面底部的 [下載] 。On the "Event Hubs" download page, select the Event Hubs version you wish to install, then select Download at the bottom of the page. Marketplace 管理套件Marketplace management packages

請注意,其他軟體套件會連同事件中樞一起下載,包括:Notice that additional software packages are downloaded along with Event Hubs, including:

  • Microsoft Azure Stack Hub Add-On RP Windows Server 僅限內部使用Microsoft Azure Stack Hub Add-On RP Windows Server INTERNAL ONLY
  • PowerShell Desired State ConfigurationPowerShell Desired State Configuration

針對已中斷連線或部分連線的案例,您會將套件下載到您的本機電腦,然後將它們匯入您的 Azure Stack Hub marketplace:For a disconnected or partially connected scenario, you download the packages to your local machine then import them into your Azure Stack Hub marketplace:

  1. 如果尚未進行,請依照下載 Marketplace 項目 - 已中斷連線或部分連線案例中的指示進行。If you haven't already, follow the instructions in Download Marketplace items - Disconnected or partially connected scenarios. 您可以在這裡下載並執行 Marketplace 摘要整合工具,以便您下載事件中樞套件。Here you download and run the Marketplace Syndication tool, which allows you to download the Event Hubs packages.
  2. 在摘要整合訂閱工具的「Azure Marketplace 項目」視窗開啟後,尋找並選取「事件中樞」,將所需的套件下載到本機電腦。After the syndication tool's "Azure Marketplace Items" window opens, find and select "Event Hubs" to download the required packages to your local machine.
  3. 下載完成後,將套件匯入至 Azure Stack Hub 執行個體,並發佈至 Marketplace。Once the download finishes, you import the packages to your Azure Stack Hub instance and publish to Marketplace.

安裝Installation

  1. 如果您尚未安裝,請登入 Azure Stack Hub 管理員入口網站、選取左側的 [Marketplace 管理] ,然後選取 [資源提供者] 。If you haven't already, sign in to the Azure Stack Hub administrator portal, select Marketplace Management on the left, select Resource providers.

  2. 下載事件中樞和其他必要軟體之後,Marketplace 管理 會顯示「事件中樞」套件,其狀態為「未安裝」。Once Event Hubs and other required software have been downloaded, Marketplace Management shows the "Event Hubs" packages with a status of "Not Installed". 可能有其他套件的狀態顯示為「已下載」。There may be other packages that show a status of "Downloaded". 選取想安裝的「事件中樞」資料列。Select the "Event Hubs" row you wish to install. Marketplace 管理下載套件Marketplace management downloaded packages

  3. 事件中樞安裝套件頁面會在頂端顯示藍色橫幅。The Event Hubs install package page shows a blue banner across the top. 選取橫幅以開始安裝事件中樞。Select the banner to start the installation of Event Hubs. Marketplace 管理事件中樞-開始安裝Marketplace management event hubs - begin install

安裝必要條件Install prerequisites

  1. 接下來,系統會將您轉移至安裝頁面。Next you're transferred to the install page. 選取 [安裝必要條件] 以開始安裝流程。Select Install Prerequisites to begin the installation process. Marketplace 管理事件中樞-安裝必要條件Marketplace management event hubs - install prerequisites

  2. 稍待片刻,直到成功安裝必要條件。Wait until the installation of prerequisites succeeds. 在繼續下一個步驟之前,您應該會看到 安裝必要條件 旁出現綠色核取記號。You should see a green checkmark next to Install prerequisites before proceeding to the next step.

    Marketplace 管理事件中樞-安裝必要條件成功

準備祕密Prepare secrets

  1. 2.準備秘密 步驟中,選取 [新增憑證] ,然後將會出現 [新增憑證] 面板。Under the 2. Prepare secrets step, select Add certificate, and the Add a certificate panel will appear. Marketplace 管理事件中樞 - 準備祕密Marketplace management event hubs - prepare secrets

  2. 選取 [新增憑證] 上的瀏覽按鈕,位於憑證檔案名稱欄位右側。Select the browse button on Add a certificate, just to the right of the certificate filename field.

  3. 選取您在完成必要條件時所取得的 .pfx 憑證檔案。Select the .pfx certificate file you procured when completing the prerequisites. 如需詳細資訊,請參閱 安裝必要條件For more information, see the installation Prerequisites.

  4. 輸入您提供的密碼,以建立事件中樞 SSL 憑證的安全字串。Enter the password you provided to create a secure string for Event Hubs SSL Certificate. 然後選取 [新增] 。Then select Add. Marketplace 管理事件中樞 - 新增憑證Marketplace management event hubs - add certificate

安裝資源提供者Install resource provider

  1. 當憑證安裝成功時,您應該會在繼續進行下一個步驟前,看到 準備祕密 旁出現綠色核取記號。When the installation of the certificate succeeds, you should see a green checkmark next to Prepare secrets before proceeding to the next step. 現在,選取 3 安裝資源提供者 旁的 [安裝] 按鈕。Now select the Install button next to 3 Install resource provider. Marketplace 管理事件中樞-開始 RP 安裝Marketplace management event hubs - start RP install

  2. 接下來,您會看到下列頁面,指出正在安裝事件中樞資源提供者。Next you'll see the following page, which indicates that Event Hubs resource provider is being installed. Marketplace 管理事件中樞-RP 安裝Marketplace management event hubs - RP installing

  3. 等待安裝完成通知。Wait for the installation complete notification. 此流程通常需要一或多個小時,視您的 Azure Stack Hub 類型而定。This process usually takes one or more hours, depending on your Azure Stack Hub type. Marketplace 管理事件中樞-RP 安裝完成Marketplace management event hubs - RP install complete

  4. 返回 Marketplace 管理資源提供者 頁面,確認事件中樞安裝成功。Verify that the installation of Event Hubs has succeeded, by returning to the Marketplace Management, Resource Providers page. 事件中樞的狀態應該會顯示為「已安裝」。The status of Event Hubs should show "Installed". Marketplace 管理事件中樞可用Marketplace management event hubs available

後續步驟Next steps

在使用者可以部署事件中樞資源之前,您必須先建立一或多個方案、供應項目和訂用帳戶。Before users can deploy Event Hubs resources, you must create one or more plans, offers, and subscriptions.

  • 如果這是您第一次提供服務,請從將服務提供給使用者教學課程開始。If this is the first time you're offering a service, start with the Offer services to users tutorial. 然後繼續進行下一個教學課程,測試服務供應項目Then continue with the next tutorial, Test a service offering.
  • 熟悉提供服務的概念之後,請建立包含事件中樞資源提供者的供應項目和方案。Once you're familiar with the concept of offering a service, create an offer and plan that includes the Event Hubs resource provider. 然後為您的使用者建立訂用帳戶,或提供供應項目訊,以便使用者建立自己的訂用帳戶。Then create a subscription for your users, or give them the offer information so they can create their own. 如需參考資訊,您也可以遵循服務、方案、供應項目、訂用帳戶概觀下的一系列文章。For reference, you can also follow the series of articles under the Service, plan, offer, subscription overview.

若要檢查更新,請參閱如何在 Azure Stack Hub 上更新事件中樞To check for updates, How to update Event Hubs on Azure Stack Hub.

如果需要移除資源提供者,請參閱移除事件中樞資源提供者If you need to remove the resource provider, see Remove the Event Hubs resource provider

若要深入了解使用者體驗,請造訪使用者文件中的 Azure Stack Hub 概觀上的事件中樞To learn more about the user experience, visit the Event Hubs on Azure Stack Hub overview in the User documents.