I am new to Azure IoT hub. I signed up for the free tier for Azure. I am trying to test a very simple scenario:
Raspbary Pi Simulator -----> IoT Hub ----> Azure Function
I have set up the IoT Hub and Pi simulator. I am sending data from the simulator to the IoT hub and I can see the messages are received by the IoT hub and the messages received count is going up so the telemetry data is getting to the IoT hub.
Then I created a function app with the following parameters:
- Runtime Stack ----> .Net
- Version ----------> 3.1
- Plan Type --------> App service plan
Then I created a function within this function App using IoT Hub trigger template. I created a new Event Hub Connection and chose IoT Hub as an option and picked my IoT Hub from the list. This created a function for me with the standard implementation of printing any incoming message to logs.
I tried to test the function in the portal by sending the test message from the portal but the function was never triggered and no logs were printed. I did get HTTP code 202 accepted back but the function was never called. The execution count for the function stayed at 0.
I also tried to test the function by sending telemetry data from the simulator to the IoT Hub. My IoT hub message count increases but the function never gets called.
Any pointers you can provide to help me debug this would be greatly appreciated.
Thanks
Karim
Images: