I've been trying to create an Azure IoT Hub Device Provisioning Servince along with Enrollment Group that is using X509 Certificates.
As far as I can see there's no way to do it using azurerm provider. I've also tried to explore azapi options but it seems like type = "Microsoft.Devices/provisioningServices@2022-12-12" also won't be able to offer automatic enrollment group creation?
Is there any other provider I could use for that?
Eventually, I ended up using
local_fileto create a temporary cert file and thennull_resourceto run Azure CLI commands, my solution:where
var.iot_dps_intermediate_certrepresents the content of.pemfile that is used to create a new Enrollment Group