How to trigger an Event Grid from an IoT Central Rule?

Munaj Syed 21 Reputation points
2021-02-09T21:30:12.57+00:00

I have a device that is connected to iot central and i've created some rules to be triggered. I currently have an azure function that is connected to the rule but i would like to use my event grid instead so that it hits the topic and my subscriptions can listen to it.

How would i be able to accomplish this?

Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
342 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
312 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roman Kiss 2,241 Reputation points
    2021-02-10T08:10:02.743+00:00

    Hi,

    have a look at the Azure Event Grid output binding for Azure Functions document.

    another alternative way is to use a CDE Webhook destination to fire the AEG Custom topic with a cloudevent schema and using the advanced filtering in the subscription.
    Note, that the ce-id, ce-source, ce-specversion and ce-type headers must be added.

    Thanks
    Roman

    1 person found this answer helpful.