Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi Vivin Kumar, Sure we'll consider your colleague's query
Lee Lingesh, Thanks for checking the App Service logs and sharing the Kudu message:
Result: Kudu: XXXX-saas-stg-xxxxx-xxxx-as__b8aa stopped.
This message generally indicates that the container or instance was stopped, either due to a platform-initiated event, a configuration change, or an internal app rule like Auto-Heal. Since your logs and metrics look fine and you confirmed that there’s no CI/CD trigger or high resource usage, here are the most likely root causes and how to further investigate them:
Azure App Service can automatically restart your app or container if certain conditions are met (e.g., slow requests, memory leaks, HTTP errors). These triggers don’t always show up in the Activity Log.
To check:
- Go to your App Service in Azure Portal
- Navigate to Diagnose and solve problems => Availability and Performance => Auto-Heal
- Review any custom auto-heal rules configured
- Disable or adjust them if needed Auto-Heal feature in Azure App Service
Sometimes, Azure may silently restart an instance as part of routine infrastructure maintenance, container image refresh, or proactive performance management. These reboots might not always be visible in the Activity Log but are part of how Azure ensures high availability.
You can confirm this by reviewing the Web App restart history:
- Go to your App Service
- Click Diagnose and Solve Problems
- Under Availability and Performance, select Web App Restarted Diagnose container and app restarts
If you've configured a Health Check endpoint, even brief failures (like high latency or a missed 200 OK) can cause Azure to stop and restart the container. Ensure the endpoint is reliable and fast, especially under load. Configure Health Check in App Service