How to get data from azure event grid topic
I have added data to azure event grid topic using topic access key and topic endpoint from NodeJS
how can I read the data in topic using NodeJS
How to get data from azure event grid topic
I have added data to azure event grid topic using topic access key and topic endpoint from NodeJS
how can I read the data in topic using NodeJS
As far as I know for NodeJS azure function event grid trigger is a way to get the events from the event grid.
So first of all create an event grid , and topic in the event grid . Also create a function app in azure portal.
Now in the fucntions
tab click on create
a pop will appear and then select `` in the list of templates and click create
Integration
and then click on Event Grid Trigger(eventGridEvent)
after that a popup will appear in which click on create Event Grid subscription
my function code :
module.exports = async function (context, eventGridEvent) {
context.log(typeof eventGridEvent);
context.log(eventGridEvent);
};
Here I have sent two event which are received by the event grid trigger function.