IoT 中心 IP 地址IoT Hub IP addresses

IoT 中心的 IP 地址前缀在 AzureIoTHub 服务标记下定期发布。The IP address prefixes of IoT hub are published periodically under the AzureIoTHub service tag. 若要确保正常运营,IoT 设备必须以出站方式连接到在 AzureIoTHub 服务标记下列出的地址前缀。To ensure proper operation, your IoT devices must have outbound connectivity to address prefixes listed under AzureIoTHub service tag. IoT 应用程序服务还需以出站方式连接到在 EventHub 服务标记下列出的地址前缀。Your IoT application services need to additionally have outbound connectivity to address prefixes listed under EventHub service tag.

最佳实践Best practices

  • IoT 中心的 IP 地址前缀可能会更改。The IP address prefixes of IoT hub are subject to change. 这些更改在生效之前通过服务标记定期发布。These changes are published periodically via service tags before taking effect. 因此,必须制定流程来定期检索并使用最新的服务标记。It is therefore important that you develop processes to regularly retrieve and use the latest service tags. 该流程可以通过服务标记发现 API 自动完成。This process can be automated via the service tags discovery API.
  • 请使用 AzureIoTHub.[区域名称] 标记来确定特定区域中的 IoT 中心终结点使用的 IP 前缀。Use the AzureIoTHub.[region name] tag to identify IP prefixes used by IoT hub endpoints in a specific region. 如果考虑到数据中心灾难恢复或区域性故障转移,请确保还允许连接到 IoT 中心的异地配对区域的 IP 前缀。To account for datacenter disaster recovery, or regional failover ensure connectivity to IP prefixes of your IoT Hub's geo-pair region is also enabled.

对 IPv6 的支持Support for IPv6

目前 IoT 中心不支持 IPv6。IPv6 is currently not supported on IoT Hub.