How function app triggered by Azure Queue decides the method succeeded or not? How to verify the same?

kunal 21 Reputation points
2020-03-05T11:11:28.307+00:00

How function app triggered by Azure Queue decides the method succeeded or not? How to verify the same?

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,583 questions
No comments
{count} votes

Accepted answer
  1. Ryan Hill 16,606 Reputation points Microsoft Employee
    2020-03-05T14:48:22.52+00:00

    Hi @kunal ,

    Azure Functions uses a script host, very similar to JobHost in webjobs, to load all metadata and code files for your function app. When the script host calls your function based off your trigger, the execution of that method should determine the success/failure of the invocation. To report a failure, all one should need to do is raise/re-throw the exception to be caught by the ScriptHost. I would also suggest using ILogger to log errors captured by your function.

    Hope this helps.

0 additional answers

Sort by: Most helpful