I have hosted Api in azure app service.
IT was working fine but now after hitting the API it is returning status code as 502 with message
The specified CGI application encountered an error and the server terminated the process.
I have restarted the app service and it started working fine but this is happening frequently.
Is there a way to get alerts or have an automatic restart of app service if this is happening frequently or any other suggestions.
This is I found in the Azure performance
Any suggestion is appreciatable. Thanks for the help