Search code examples
azureazure-iot-hub

Can't link IoT Hub Device Provisioning Service to IoTHub not found


I just created an IoTHub with a Device Provisioning Service and I get an error when I try to link the two together. The Azure portal sends me back

There was a problem updating your Device Provisioning Service to link to IoT hub. An unexpected error occurred while updating your Device Provisioning Service. Error message: Unable to find the IoThub <my iothub>.azure-devices.net. Check if the hub exists and the connection information is correct.

Is it an Azure problem or a configuration problem on my side? Thank for your help

I try to link manually from the portal my DPS and my IoT Hub but it doesn't work. I follow the documentation about shared access policy configuration but mine is on "Allow"


Solution

  • I found where are located the issue. It's because my iothub was not accessible via public network. I just change Terraform related setting and it was done.