-1

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.

enter image description here

James Z
  • 12,209
  • 10
  • 24
  • 44
  • Do you have "always on" enabled on the App Service? This looks like your Function App is being shut down due to no requests coming in. An Event Hub trigger will *not* wake up your Function App. – rickvdbosch Feb 21 '22 at 08:09
  • Glad it helped ! If the answer was helpful, Please [Accept it as an Answer](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work), so that others who encounter the same issue can find this solution and fix their problem. – AjayKumarGhose Mar 03 '22 at 05:48
  • 1
    the title of the question doesn't reflect the actual problem – PersianIronwood Jan 25 '23 at 09:27

1 Answers1

0

To view function execution count we need to configure as below:

  • When we have published our Event hub function to Azure make sure that the below configuration is there in our function:

enter image description here

  • Also make sure that we have enable Application insight enabled for monitoring as below:

enter image description here

OUTPUT:- enter image description here

For more information please refer this SO THREAD as suggested @IVAN YANG and this BLOG .

UPDATE:-1

It may be you have not tested your function in Code+test . To view the function execution count make sure that we have Test our function from portal> Functions> Your Function> COde+Test>Run as below : enter image description here

Then make a refresh or reload the page and you will be able to see the Count as well. enter image description here

AjayKumarGhose
  • 4,257
  • 2
  • 4
  • 15