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

7 answers

Sort by: Most helpful
  1. 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

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