Deploy Azure function to app service in Microsoft Azure

Mic 6 Reputation points
2022-02-21T07:27:44.74+00:00

I created Azure function with Event-Hub trigger to insert data to SQL database in Microsoft visual studio 2019. Normally, It can work with local system. But when I deploy to Microsoft Azure the Azure function will not working.

In chart

Memory working set has event.
Function Exception Count doesn't have any event.
176312-image.png
Please suggest it to me.

Thank you.

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
742 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,000 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
641 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Radu Vunvulea 246 Reputation points Microsoft Regional Director
    2022-02-21T08:04:46.913+00:00

    The first thing that I would check is the trigger configuration of your deployed function. To be sure that you do the right configuration of the trigger, you should manually create a function inside Azure Portal and configure the trigger to the Event Hub. Check if the function is triggered as expected. Once it works, try to move each part of the configuration and code to the test function until you identify the issue.

    I common problem is that you have the same consumer group for your Event Hub for local and deployed functions. Ensure that only the deployed function has a dedicated consumer group.

    Refs:
    https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-features
    https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-hubs-trigger?tabs=csharp

    0 comments No comments

  2. MughundhanRaveendran-MSFT 12,481 Reputation points
    2022-02-24T12:25:07.203+00:00

    @Mic ,

    Thanks for posting the question in Microsoft Q&A forum.

    The memory working set graph indicates the deployment of the function. It appears that there are no exceptions because the function is not getting triggered. I would suggest you to check the integration section of the eventhub function and see if the eventhub connection string, Hubname and consumer group are properly configured.

    177495-image.png

    Once this is done, check if the eventhub is receiving the events and what is the status of the consumer (Function) in the Eventhub portal. Also make sure you are using the latest version of function extension : https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.EventHubs

    I hope this helps!

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


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.