An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
I faced the same problem. For me the problem was related to the fact that in Terraform I was using "Listen" policy for EventHub and it was lacking enough permissions for Iothub to access EventHub. And when you create that endpoint manually, Azure automatically creates new policy "iothubroutes_{eventhubname}" with "Send" permissions. So, I had to use "Send' permission in my Terraform code