When I execute an Azure Function (written in PowerShell, Function App is on consumption plan) in parallel from Azure Data Factory, sometimes a couple Function calls fail with the following errors:

Typically, the "502 - Bad Gateway" error occurs when the Function is running too long, but in this case the Functions were running for less than a minute.
When looking at the live logs when running the Functions, it seems the Function App is restarting out of the blue.

There's seems to be an unhandled exception in the grpc.core libraries (which can either be caused because of the sudden shutdown, or maybe it causes the shutdown?).
