在 Azure Stack Hub 上安裝 IoT 中樞的必要條件Prerequisites for installing 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.

您必須先完成下列必要條件,才能在 Azure Stack Hub 上安裝 IoT 中樞。The following prerequisites must be completed before you can install IoT Hub on Azure Stack Hub. 可能需要數天或數周的潛在客戶時間 才能完成所有步驟。Several days or weeks of lead time may be required to complete all steps.

重要

這些必要條件假設您已部署至少4個節點的 Azure Stack Hub 整合式系統、 組建編號 1.2005.6.53 或更高版本。These prerequisites assume that you've already deployed at least a 4-node Azure Stack Hub integrated system, build number 1.2005.6.53 or higher. Azure Stack Hub 開發工具組 (ASDK) 不支援 IoT 中樞資源提供者。The IoT Hub resource provider is not supported on the Azure Stack Hub Development Kit (ASDK).

一般必要條件Common prerequisites

如果您已安裝資源提供者,則可能已完成下列必要條件,並可略過本節。If you've already installed a resource provider, you've likely completed the following prerequisites, and can skip this section. 否則,請先完成這些步驟,再繼續進行:Otherwise, complete these steps before continuing:

  1. 如果尚未進行,請向 Azure 註冊您的 Azure Stack Hub 執行個體Register your Azure Stack Hub instance with Azure, if you haven't done so. 由於您會連線至 Azure 並將項目下載至市集,因此必須進行此步驟。This step is required as you'll be connecting to and downloading items to marketplace from Azure.

  2. 如果您不熟悉 Azure Stack Hub 管理員入口網站的 Marketplace 管理功能,請檢閱從 Azure 下載市集項目並發佈至 Azure Stack HubIf you're not familiar with the Marketplace Management feature of the Azure Stack Hub administrator portal, review Download marketplace items from Azure and publish to Azure Stack Hub. 本文將逐步引導您完成從 Azure 將項目下載到 Azure Stack Hub 市集的流程。The article walks you through the process of downloading items from Azure to the Azure Stack Hub marketplace. 內容涵蓋已連線和已中斷連線兩種情況。It covers both connected and disconnected scenarios. 如果您的 Azure Stack Hub 執行個體已中斷連線或僅有部分連線,則在準備安裝時需要完成其他必要條件。If your Azure Stack Hub instance is disconnected or partially connected, there are additional prerequisites to complete in preparation for installation.

  3. 更新 Azure Active Directory (Azure AD) 主目錄。Update your Azure Active Directory (Azure AD) home directory. 從組建1910開始,必須在您的主目錄租使用者中註冊新的應用程式。Starting with build 1910, a new application must be registered in your home directory tenant. 此應用程式可讓 Azure Stack Hub 成功建立和註冊較新的資源提供者 (例如事件中樞、IoT 中樞,以及其他與 Azure AD 租使用者) 的資源提供者。This app will enable Azure Stack Hub to successfully create and register newer resource providers (like Event Hubs, IoT Hub, and others) with your Azure AD tenant. 這是在升級至組建1910或更新版本之後,需要完成的一次性動作。This is an one-time action that needs to be done after upgrading to build 1910 or newer. 如果未完成此步驟,marketplace 資源提供者安裝將會失敗。If this step isn't completed, marketplace resource provider installations will fail.

相依性必要條件Dependency prerequisites

  1. 從 Marketplace 下載並 安裝事件中樞Download and install Event Hubs from the Marketplace. 在開始部署 IoT 中樞之前,必須先進行事件中樞的部署。The deployment of Event Hubs must happen BEFORE the deployment of IoT Hub is started.
  2. 若要更快速地下載和安裝 IoT 中樞,請先從 Marketplace 下載下列相依專案,再下載 IoT 中樞套件。For a faster download and install of IoT Hub, download the following dependent items from Marketplace before downloading IoT Hub package. 否則,IoT 中樞部署會嘗試下載相依套件:Otherwise, IoT Hub deployment will try to download the dependent packages:
    • 自訂指令碼延伸模組Custom Script Extension
    • PowerShell Desired State ConfigurationPowerShell Desired State Configuration
    • 免費授權:Windows Server 2016 上的 SQL Server 2016 SP2 ExpressFree License: SQL Server 2016 SP2 Express on Windows Server 2016
    • SQL IaaS 延伸模組SQL IaaS Extension
    • Azure Stack Add-On RP Windows ServerAzure Stack Add-On RP Windows Server
  3. 在成功安裝事件中樞之後,請至少等候10分鐘,再繼續進行 IoT 中樞的部署。Wait at least 10 minutes after the successful installation of Event Hubs, before continuing with the deployment of IoT Hub.

憑證需求Certificate requirements

  1. 為事件中樞 (PKI) TLS/SSL 憑證採購公開金鑰基礎結構。Procure a public key infrastructure (PKI) TLS/SSL certificate for Event Hubs. (SAN) 的主體替代名稱必須遵守下列命名模式: CN=*.mgmtiothub.<region>.<fqdn>The Subject Alternative Name (SAN) must adhere to the following naming pattern: CN=*.mgmtiothub.<region>.<fqdn>.

    您可以指定主體名稱,但在處理憑證時,IoT 中樞不會使用它。Subject Name may be specified, but it's not used by IoT Hub when handling certificates. 只會使用主體替代名稱。Only the Subject Alternative Name is used. 如需詳細需求的完整清單,請參閱 PKI 憑證需求See PKI certificate requirements for the full list of detailed requirements.

    iot 中樞憑證範例

  2. 請務必檢查 驗證您的憑證Be sure to review Validate your certificate. 本文說明如何準備及驗證您用於 IoT 中樞資源提供者的憑證。The article shows you how to prepare and validate the certificates you use for the IoT Hub resource provider.

DNS 設定需求DNS configuration requirements

若要讓 IoT 中樞在 Azure Stack Hub 上適當地處理網路,網路系統管理員必須設定 DNS。For IoT Hub to work on the network properly on Azure Stack Hub, the network administrator needs to configure DNS. 在 DNS 管理工具中尋找 DNS 條件式轉送設定,並新增條件式轉送規則以允許:的流量 <region>.cloudapp.<externaldomainname>Find the DNS conditional forwarding setting in the DNS management tool, and add a conditional forwarding rule to allow traffic for: <region>.cloudapp.<externaldomainname>. 例如 ussouth.cloudapp.contoso.comFor example, ussouth.cloudapp.contoso.com.

後續步驟Next steps

接下來,在 連線的 Azure Stack上安裝 IoT 中樞資源提供者。Next, install the IoT Hub resource provider on connected Azure Stack.