Have you checked the function logs?
Azure Function - The service is unavailable
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.
7 answers
Sort by: Most helpful
-
-
Anky 121 Reputation points
2020-09-13T18:51:26.887+00:00 Try deploying the function app to new resource.
-
(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 ?
-
(HERMES) Thomas Duvivier 1 Reputation point
2022-01-19T14:13:28.827+00:00 Hi, no update on this topic ?
-
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