Hello @Debashis Jena
welcome to this moderated Azure community forum.
Azure Functions supports ingesting Azure IoT Hub telemetry via a specific trigger.
It uses the 'eventhub compatible endpoint' of the IoT Hub to receive messages.
There are basically three challenges to overcome:
- Your azure function is corrupt or you use an old example. Check the documentation. I think you fixed this already.
- You reuse the '$default' consumer group too many times. Consumer groups are used to 'duplicate' incoming messages to every consumer of the endpoint (eg. Azure Stream Analytics, Azure Data Explorer, Azure Functions). It's better to give every consumer its own consumer group
- The 'eventhub compatible endpoint' is not sending message anymore because extra custom routes were added to the iot hub so it was transformed into a fallback route
The third challenge is most likely:
The resolution is simple for this one challenge.
Add an extra 'events' endpoint and every message flow through the endpoint again.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.