如何在 Azure Stack Hub 上安裝 IoT 中樞How to install IoT Hub on Azure Stack Hub
重要
Azure Stack Hub 上的 IoT 中樞目前為預覽狀態,在預覽期間免費提供。IoT Hub on Azure Stack Hub is currently in preview, and is provided free during the preview period.
本文說明如何下載及安裝 IoT 中樞資源提供者,讓它可供應給客戶提供訂用帳戶。This article shows you how to download and install the IoT Hub resource provider, making it available to offer to customers for subscription. IoT 中樞的安裝程式大約需要2小時的時間。The installation process of IoT Hub takes about 2 hours.
下載 IoT 中樞Download IoT Hub
如果您的 Azure Stack Hub 可以存取 Azure Marketplace,請依照本節中的步驟下載並安裝 IoT 中樞及其相依性。If your Azure Stack Hub can access the Azure Marketplace, follow the steps in this section to download and install IoT Hub and its dependencies.
若要下載已連線部署的 IoT 中樞,請完成下列步驟:To download IoT Hub for a connected deployment, complete the following steps:
登入 Azure Stack Hub 系統管理員入口網站。Sign in to Azure Stack Hub administrator portal.
選取左側的 [ Marketplace 管理 ],然後選取 [ 資源提供者],再按一下 [ 從 Azure 新增] + [新增]。Select Marketplace Management on the left, then select Resource providers, then click on + Add from Azure.
視需要篩選「IoT 中樞」,然後選取 IoT 中樞 套件。Filter for "IoT Hub" if necessary, then select the IoT Hub package.
在 [ IoT 中樞 套件] 頁面上,選取 [下載]On the IoT Hub package page, select Download
等候套件下載完成。Wait for the package download to complete. 狀態將會顯示 下載,最多可能需要10分鐘的時間。The status will show Downloading, and can take up to 10 minutes.
下載套件之後,[ Marketplace 管理] 頁面中的狀態將會變更為 [未安裝]。Once the package is downloaded, the status will change to Not installed in the Marketplace management page.
若要下載已中斷連線或部分連線部署的 IoT 中樞,請先將套件下載到您的本機電腦。To download IoT Hub for a disconnected or partially connected deployment, first you download the packages to your local machine. 下載完成之後,您可以將它們匯入 Azure Stack Hub 實例中。After the download completes, you then import them into your Azure Stack Hub instance.
- 如果尚未進行,請依照下載 Marketplace 項目 - 已中斷連線或部分連線案例中的指示進行。If you haven't already, follow the instructions in Download Marketplace items - Disconnected or partially connected scenarios. 您可以在這裡下載並執行 Marketplace 摘要整合工具,這可讓您下載 IoT 中樞套件。Here you download and run the Marketplace Syndication tool, which allows you to download the IoT Hub packages.
- 在新聞訂閱工具的 [Azure Marketplace 專案] 視窗開啟之後,尋找並選取 [IoT 中樞],將必要的套件下載到本機電腦。After the syndication tool's "Azure Marketplace Items" window opens, find and select "IoT Hub" to download the required packages to your local machine.
- 下載完成後,將套件匯入至 Azure Stack Hub 執行個體,並發佈至 Marketplace。Once the download finishes, you import the packages to your Azure Stack Hub instance and publish to Marketplace.
安裝 IoT 中樞Install IoT Hub
從 Marketplace 管理 頁面,依照下列步驟來安裝 IoT 中樞套件:From the Marketplace management page, follow these steps to install the IoT Hub package:
按一下 [ IoT 中樞 ] 資料列,然後 開始安裝。Click on the IoT Hub row, then Start Installation.
按一下 [ 安裝必要條件]。Click on Install Prerequisites.
您可以在 [通知] 窗格中追蹤安裝的狀態。The status of the installation can be tracked in the notification pane. 此步驟需要約10分鐘。This step will take about 10 minutes.
等候必要條件的安裝完成。Wait for the installation of the prerequisites to complete. 視環境而定,此步驟通常會在5-10 分鐘之間進行。This step usually takes somewhere between 5-10 minutes depending on the environment.
按一下 [準備秘密] 下的 [新增憑證]。Click on Add Certificates under Prepare Secrets. 提供在必要條件中建立的 pfx 憑證。Provide the pfx certificate created in prerequisites.
流覽並提供已建立的 pfx 和密碼 (腳本的輸入) Browse and provide the pfx that was created and the password (the input to the script)
按一下 [安裝資源提供者] 下的 [安裝]。Click on Install under Install Resource Provider.
安裝開始之後,您可以在 Marketplace 或 [通知] 窗格中找到部署狀態。Once the installation starts, deployment status can be found in the Marketplace or in the notification pane.
安裝可能需要90–120分鐘。Installation can take between 90 – 120 minutes. 等待安裝完成。Wait for the installation to complete.
IoT 中樞資源提供者已成功安裝!The IoT Hub resource provider is installed successfully! 若要開始使用,請完成下列步驟:To get started, complete the following steps:
如有必要,請依照指示來 建立方案、供應專案和訂用帳戶。If necessary, follow the instruction to create a plan, offers, and subscription.
如果訂用帳戶已存在,請將相關聯的供應專案/方案更新為包含「 Microsoft 裝置 服務」。If a subscription already exists, update the associated offer/plan to include Microsoft.Devices service. 移至 方案 -> 選擇更新 -> 新增服務和配額 的方案。Go to Plan -> Choose the plan to update -> Add Service and quota.
新增 [ Microsoft 裝置] 服務 ,然後按一下 [ 儲存]。Add Microsoft.Devices Service and click Save.
您已全部設定!You are all set! 現在可以建立 IoT 中樞。IoT Hubs can now be created.
使用 IoT 中樞Using IoT Hub
若要瞭解如何使用 IoT 中樞,請參閱 Azure IoT 中樞檔。To learn how to use IoT Hub, refer to the Azure IoT Hub documentation.
後續步驟Next steps
若要深入瞭解如何在 Azure Stack Hub 上管理 IoT 中樞,請參閱 如何在 Azure Stack Hub 上管理 Iot 中樞。To learn more about managing IoT Hub on Azure Stack Hub, see How to manage IoT Hub on Azure Stack Hub.