Hi @Khandu Shinde Thank you for posting the question here.
The error you are seeing implies that the IoT Edge device fails to establish connection with IoT Hub or send any communication about the modules. This likely could happen for one of the two possible reasons.
- If the IoT Hub is behind a private end point and public access set to Disabled or not allowing the IP address of the client to access it, you will receive this type of error.
- Your IoT Edge is working in a completely isolated network from the internet traffic.
You can check the public network access of IoT Hub from Azure portal Networking tab. Please refer to the below image for reference.
If public access is restricted to your IoT Hub, make sure your IoT Edge device is part of a VNet that accepts connections to the IoT Hub. Please refer to Ingress connectivity to IoT Hub using Azure Private Link for more information on this architecture.
Here is another resource that will walk you through the configuration steps needed to Using Azure Private Link and Private Endpoints to secure Azure IoT traffic
Hope this helps!
Please let us know in the comments below if you still encounter the issue after validating the above steps. We would be glad to assist you further.
If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.