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,287 questions
0 comments No comments
{count} votes

7 answers

Sort by: Newest
  1. Luke M 0 Reputation points
    2023-03-24T06:40:41.3633333+00:00

    We just had the same issue with one of our function apps. It suddenly started returning Service is Unavailable.

    Restarting the Function app did not fix the issue, Redeploying the Function app did fix the issue.

    0 comments No comments

  2. Mikhail 0 Reputation points
    2023-03-08T08:04:37.1933333+00:00

    We have the same problem: all the function apps have suddenly stopped working with "The service is unavailable." message when requesting the web page.

    Is there any solution for this?

    0 comments No comments

  3. 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

  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. (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