在 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 并将项目从 Azure 下载到市场。This step is required as you'll be connecting to and downloading items to marketplace from Azure.

  2. 如果不熟悉 Azure Stack Hub 管理员门户的“市场管理”功能,请参阅从 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 使用 Azure AD 租户成功创建和注册更新的资源提供程序(如事件中心、IoT 中心等)。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. 如果此步骤未完成,则商城资源提供程序安装会失败。If this step isn't completed, marketplace resource provider installations will fail.

依赖项先决条件Dependency prerequisites

  1. 从市场下载并安装事件中心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 中心,请在下载 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 所需状态配置PowerShell 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 附加产品 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

为了在 Azure Stack Hub 上使 IoT 中心在网络上正常工作,网络管理员需要配置 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>. 例如,chinaeast.cloudapp.contoso.comFor example, chinaeast.cloudapp.contoso.com.

后续步骤Next steps

接下来,在连接的 Azure Stack 上安装 IoT 中心资源提供程序。Next, install the IoT Hub resource provider on connected Azure Stack.