Azure Functions Log to Event Hub

2022-02-25T05:53:50.063+00:00

Hi Team,

How to call an Event Hub When the Error/Success Message Occurred in the Functions?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,398 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
689 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
419 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,481 Reputation points
    2022-02-25T09:30:21.027+00:00

    @venkata hanuman chowdary somepalli ,

    Thanks for reaching out to the Microsoft Q&A forum.

    You can call/send events to eventhub using the eventhub output bindings in Functions or by using the Eventhub sdk in the function code. For the error/success handling, you may use a try/catch block in the function code and in case of failure you can catch the exception and send events to the eventhub.

    I hope this helps! Feel free to reach out to me if you have any further queries.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.