Hello @MartinConnell-5886,
We are sorry to hear you are facing this issue. Most times when an app is stopped temporarily, it is because the app Memory quota is exceeded. You can try setting up alerts for your metric to know when you are about to hit your memory quota. Please follow the step in this Azure doc to create, view, and manage log alerts using Azure Monitor. The doc shows you how to create and manage log alerts using the alerts interface inside the Azure portal. Alert rules are defined by three components:
Target: A specific Azure resource to monitor
Criteria: A condition or logic to evaluate for truth. If true, the alert fires.
Action: Specific call sent to a receiver of a notification - email, SMS, webhook etc.
You mentioned you are using the Free pricing tier for your web app which uses shared compute instance means multiple customers apps will be running on the same machine/instance, so if some other site on that instance is using more CPU, Memory or exceeding the other quota limit than it may affect your application as well. I would recommend using a paid tier if you are working on production workloads.
See the below links for additional information:
https://azure.microsoft.com/en-in/pricing/details/app-service/
https://learn.microsoft.com/en-us/azure/azure-subscription-service-limits
https://learn.microsoft.com/en-us/azure/azure-monitor/platform/alerts-metric-overview
Let us know if you have further questions:
Thanks,
Grace