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 Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,875 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 25,666 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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful