Webjob via WebHook in Azure Data Factory RRS feed

  • Question

  • I am trying to write a webjob that will be called via a webhook in Azure Data Factory.  I am able to trigger the webjob but i need it to respond back when completed.  The webjob completes now but does not notify the pipeline that it completed in ADF so the pipeline times out.  I have tried calling a function in my code that has the webhook attribute but it comes back with bad request.  Are there any good examples out there?
    • Moved by Grace MacJones-MSFT Monday, August 19, 2019 5:41 PM question related to azure data factory
    Monday, August 19, 2019 1:07 PM

All replies

  • Hello silgenfritz ,

    Have you gone though this https://docs.microsoft.com/en-us/azure/data-factory/control-flow-webhook-activity

    t does call out the very point which you are talking about

    Additional notes

    Azure Data Factory will pass an additional property “callBackUri” in the body to the url endpoint, and will expect this uri to be invoked before the timeout value specified. If the uri is not invoked, the activity will fail with status ‘TimedOut’.

    The web hook activity itself fails only when the call to the custom endpoint fails. Any error message can be added into the body of the callback and used in a subsequent activity.

    This should be worth the read .


    Thanks Himanshu

    Wednesday, August 21, 2019 9:35 PM
  • Hi,

    If i am not wrong ADF accepts valid JSON response so please check if the response from webjob is a valid JSON or not if not then first convert it to JSON and then pass it to ADF then it should work.


    Thursday, August 22, 2019 6:22 AM
  • I have successfully used the callBackUri in my powershell runbook, but I can not figure out how to use it in a console application that is running as a webjob.  Any examples of a console app using the callBackUri from the body?


    Monday, August 26, 2019 7:10 PM
  • You got any solution ?
    Monday, November 11, 2019 10:07 PM
  • Hi, I am also working on this problem. So far could not be able to find any solution to fetch the callBackUri inside the webjobs .Net code to invoke. Please help by showing the correct piece of code for this problem.
    Tuesday, November 19, 2019 7:21 AM