通过 Terraform 创建 IoT 中心设备

时间:2021-07-14 17:29:26

标签: azure terraform terraform-provider-azure

我通过 azurerm_iothub 资源创建了 Azure IoT 中心 - https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/iothub

但是如何通过 Terraform 将 IoT 设备添加到 IoT 中心?

1 个答案:

答案 0 :(得分:0)

您可以使用 DPS,因为 Azure IoT 中心设备预配服务 (DPS) 提供了一组丰富的功能,可通过 Azure IoT 中心实现设备的零接触、即时预配。 DPS 可用于以安全且可扩展的方式配置数百万台设备,而无需人工干预。

参考:

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/iothub_dps

https://build5nines.com/terraform-create-azure-iot-hub-and-dps/