@Hauke Petersen We understand you are having issues with your deployments to your deployment slot.
This issue could be related to idle timeout. We see that in Azure WebApp environment the ide timeout is set to 20 minutes by default. Once that time is finished there will be no more incoming request to SCM site. If your deployment process (fetch, build, deploy) takes longer than that, it will be abruptly terminated.
We suggest you set your WebApp's appSettings WEBSITE_SCM_IDLE_TIMEOUT_IN_MINUTES = <value>. For instance, set to 30 if your deployment will last at most 30 mins.
- Navigate to portal.azure.com
- Go to your web app in the portal
- Select the 'Configuration' blade
- Enter WEBSITE_SCM_IDLE_TIMEOUT_IN_MINUTES = <value> in the Application settings section.
You can also try to enable WebApp's AlwaysOn feature. Our infrastructure will send requests periodically to your SCM site to keep it alive.
Please let us know if either of these two solutions resolve your issue. If not, reply back to here so we can assist you further.