I have an existing Azure function, .NET 6, hosted on Linux, it was working up until today. Now it returns "The service is unavailable".
I tried to create a brand new Azure function - .NET 6 - Linux from the Portal and it returns the same message. On Windows hosting it works fine.
Creating a new function in Portal and failing without any other modifications is a bit worrying. Is there something broken on MS/Azure side?
CodePudding user response:
Azure Functions Linux Hosting Plan - New Http Trigger Function Published Successfully and working good from our end:
There are many reasons that cause 503 service unavailable in Azure Functions:
- Memory leak/issue from the code causing the backend server to return 503.
When a service consumes more memory than is available under the consumption plan, it is evicted. This problem can be resolved by switching to a dedicated hosting plan. Refer here for more information.
- Function host might be down/restarting
- Due the deallocation/not running the backend server, there may be Platform issue.
Please refer to one of My workarounds to investigate and fix this issue.
CodePudding user response:
It started working again. I suspect there was an issue on Azure side.