Azure IoT Error

Luke Vupputuri 6 Reputation points
2020-03-30T14:50:14.523+00:00

Hello,
I am facing an error at Azure function level. The data is received at IoT Hub as I can see my device but the function errors out

Please check

Thank you

Regards,
Luke Vupputuri

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
534 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Sander van de Velde 28,236 Reputation points MVP
    2020-07-19T19:19:47.95+00:00

    It's not clear what exception *anonymous user*Vupputuri-5950 is referring to.

    I invested the possible errors mentioned above by just recreating the most optimal path:

    1. I created an Azure Function and an IoT Hub.
    2. I gave the IoT Hub an extra consumer group named AF.
    3. I created a single IoT device and used the https://azure-samples.github.io/raspberry-pi-web-simulator/ to create some JSON messages. Messages are arriving at my IoT Hub.
    4. I created an Azure function application (based on .Net Core)
    5. I created an IoTHub (event hub) function with just the IoT Hub connected together with the consumer group.

    No messages arrived at my function.

    In the logging of the function monitor log (live metrics), this exception was shown:

    The listener for function 'Functions.IoTHub_EventHub1' was unable to start. <--- Encountered error while fetching the list of EventHub PartitionIds <--- InvalidSignature: The token has an invalid signature.
    

    I tried some other trigger settings (eg. changing the consumer group to $default, setting the function trigger event hub name to the iot hub eventhub name) but the same exception kept showing.

    I then routed the same messages to a regular eventhub. A new function with an eventhub trigger was working right away.

    So, the IoT hub function does not seem to be working. No idea why.

    Personally, I recommend using the IoT hub routing together with the extra eventhub. For a little bit more money, a much more flexible architecture is introduced.

    1 person found this answer helpful.
    0 comments No comments

  2. Leon Laude 85,651 Reputation points
    2020-04-02T13:54:52.76+00:00

    Hi,

    Q&A currently supports the products listed in right-hand pane (more to be added later on)

    You can reach the experts in the dedicated Azure Migrate forum over here:

    Azure IoT Hub
    https://social.msdn.microsoft.com/Forums/azure/en-US/home?forum=azureiothub

    Azure IoT Edge
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=iotedge

    (please don't forget to mark helpful replies as answer)

    Best regards,
    Leon

    0 comments No comments