Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Thank you for reaching us regarding the issue.
Yes, you can restart a specific worker/instance in Azure App Service without restarting the entire app or plan.
- Is it supported or possible to restart a specific App Service worker/instance via:
- Via Azure Portal (Recommended for Manual Restarts)
After enabling Health check (under Monitoring for your App Service app):- Navigate to the Instances tab.
- View instance names and health status (Healthy/Unhealthy).
- Select Restart for a specific instance. This performs an advanced application restart on that worker process.
This performs a targeted restart of the application worker on that instance. If the restart doesn’t resolve the issue, you’ll often get an option to Replace the worker (subject to platform limits: 1 per hour / 3 per day per plan).
- Via REST API (for CLI/PowerShell/Scripting)
Use the Reboot Worker API on the App Service Plan:
The workerName usually starts with “RD” and can be found in the Instances blade or platform logs.POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Web/serverfarms/{name}/workers/{workerName}/reboot?api-version=2025-05-01
Recommended Approach (Best Practice)
For production workloads, Microsoft recommends designing for resilience instead of frequent manual restarts:
- Enable Health Check so unhealthy instances are automatically removed from the load balancer.
- Use Auto-Heal rules for automatic process recycling based on memory, CPU, or request failures.
- Scale out to at least 2–3 instances so traffic can shift seamlessly while the platform handles recovery.
Observability with AppServicePlatformLogs:
Logs platform events like worker process starts, recycles, stops, and Auto-Heal actions. Use them to infer restarts (e.g., a new “Worker Process launched” after recycle). No single definitive restart event, correlate with metrics, HTTP logs, and the Instances view for a complete picture.
Why instance-level restart is not exposed:
In Azure App Service (PaaS), Microsoft manages the underlying infrastructure, handling maintenance, patching, and recovery, so you don’t control individual instances directly. Instance-level actions (like restart/replace) are mainly for troubleshooting, while the platform relies on built-in healing (Health Check, Auto-Heal, overlapped restarts) to maintain availability. For resilience, designs focus on multi-instance deployments with automatic recovery rather than manual instance control.
Reference:
https://learn.microsoft.com/en-us/rest/api/appservice/app-service-plans/reboot-worker?view=rest-appservice-2025-05-01
https://learn.microsoft.com/en-us/azure/app-service/monitor-instances-health-check?tabs=dotnet
https://learn.microsoft.com/en-us/azure/app-service/routine-maintenance-downtime
If the answer is helpful, Please do click "Accept the answer” and Yes, this can be beneficial to other community members.
If you have any other questions, let me know in the "comments" and I would be happy to help you