Azure Function - The service is unavailable

Nestor 46 Reputation points
2020-08-10T14:14:04.947+00:00

Hello,

I have an Azure Function being called from Data Factory. During development/debugging, the Azure Function works as expected; however, when running on a scheduled trigger, it fails intermittently with the error: The service is unavailable.
This is a copy+paste from the Data Factory log:
"errorCode": "3608",
"message": "Call to provided Azure function '' failed with status-'ServiceUnavailable' and message - 'The service is unavailable.'.",

I initially thought the call was timing out while the function was "waking up", so I added a 2 retries with a 30 second delay, but the result is the same. The retries run, but the service is still unavailable.

I have another pipeline using the same Azure Function, the only difference is the second pipeline runs 2 hours later. Strangely enough, the second pipeline is running fine most of the time; though it sometimes throws the same error.

Additionally, if I manually trigger the pipeline to run, it will run without issues.

Any pointers as to how to solve this?

Thank you.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,211 questions
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Sam Cogan 10,082 Reputation points MVP
    2020-08-10T18:19:58.25+00:00

    Have you checked the function logs?

    0 comments No comments

  2. Anky 121 Reputation points
    2020-09-13T18:51:26.887+00:00

    Try deploying the function app to new resource.

    0 comments No comments

  3. (HERMES) Thomas Duvivier 1 Reputation point
    2021-11-10T08:17:20.12+00:00

    Hi, I have the exact same problem, I put 6 retry with 120s wait to make sure it works at some point but this causes problems performance wise. The log of my Azure Function is empty and Functions>myfunction>monitor also does not show anything. Any idea ?

    0 comments No comments

  4. (HERMES) Thomas Duvivier 1 Reputation point
    2022-01-19T14:13:28.827+00:00

    Hi, no update on this topic ?

    0 comments No comments

  5. Kelvin 1 Reputation point
    2022-11-01T01:00:30.323+00:00

    any update here? I got the same issue for one of the function app

    0 comments No comments