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:
"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?