An Azure service that provides an event-driven serverless compute platform.
Hi @NGaur-3476 ,
Thanks for reaching out to Q&A forum.
For long running functions, I would suggest you to use durable functions as they also have powershell support.
https://learn.microsoft.com/en-us/azure/azure-functions/durable/quickstart-powershell-vscode
When the functions is long running, please make sure that it is not hitting the memory and cpu limit. You can confirm this by running the "Function app down or reporting errors" detector available in the Daignose and solve problems blade. Please note that, memory related issues can cause 503 errors.
Feel free to reach out to me if you have any questions.