Hi @Bray Modal
I see you’re experiencing restarts when swapping your Azure App Service slots.
Swapping slots can trigger application restarts due to factors like hostname binding changes, socket state, or resource state even if app settings are the same. Common causes include user-initiated restarts, configuration changes, slot-specific settings, scaling, or Azure maintenance.
Use the Diagnose and solve problems blade in the Azure portal and run the Web App Restarted detector to find out why and when restarts occur.
Implementing health checks can help Azure determine if your app is ready for requests, especially if it relies on external dependencies that need time to load.
Make sure settings like WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG=1 and WEBSITE_SKIP_ALL_BINDINGS_IN_APPHOST_CONFIG=1 are set in all slots to avoid binding conflicts.
Storage events or discrepancies after a swap can cause worker process restarts. Check that your app responds to health checks and HTTP pings before and after swaps, and review eventlog.xml in D:\home\LogFiles\ for errors that might explain the restarts.
Set up staging environments in Azure App Service
Health check in Azure App Service
Let me know if you have any further assistances needed.