Comments on: Most common deployment slot swap failures and how to fix them https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/ Azure App Service Features and Best Practices Tue, 27 Oct 2026 10:46:00 +0000 hourly 1 https://wordpress.org/?v=6.2.16 By: Angry Dance AI https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-102048 Tue, 27 Oct 2026 10:46:00 +0000 http://ruslany.net/?p=419544#comment-102048 I’ve been bitten by slot settings forcing every staging instance to restart, and the swap stalled while one instance never came back. Now I verify each instance warms up with production config before swapping.

]]>
By: Curbora https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-101680 Tue, 20 Oct 2026 16:38:06 +0000 http://ruslany.net/?p=419544#comment-101680 I’ve had a swap fail right at the step where instances restart after production slot settings are applied, and it was confusing until I realized the process reverts config changes. The detail about Swap with Preview pausing after that first phase makes sense now.

]]>
By: Mike Jackson https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-34315 Fri, 06 May 2022 20:29:00 +0000 http://ruslany.net/?p=419544#comment-34315 I’ve been working with Microsoft techs for over a wek trying to get a new version of my code published to a deployment slot. All we get is errors. This is critical to our business since information on the site is invalid and fines from the EPA are happening.

Here is the TrackingID#2205040040004153

I am so fed up with trying to get this work, I’ve investigated moving to AWS.

]]>
By: Zhenya https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-21443 Tue, 23 Mar 2021 00:36:36 +0000 http://ruslany.net/?p=419544#comment-21443 I setup slot deployment, and everything works great except that after the swap of staging and production slots, all the traffic appears to go to the staging endpoint even though 100% is set to go to the production slot. Both staging and production service instances log to the same App Insights instance, where I can see this issue. App service restart mitigates this issue and forces the traffic to go to the production slot until the next deployment when another slot swap happens. How can I troubleshoot and fix this issue? Thanks!

]]>
By: Ruslan https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-1581 Sun, 09 Jun 2019 13:22:27 +0000 http://ruslany.net/?p=419544#comment-1581 In reply to Diep Nguyen.

The warmup requests are sent to the web workers from different VMs, and those VMs are on the same internal network. That’s why their IP addresses start with 10 or 100. I haven’t heard about the need to add the loopback address. I wonder if this is maybe specific to the Sitecore-based applications only?

]]>
By: Diep Nguyen https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-1570 Sun, 09 Jun 2019 09:33:18 +0000 http://ruslany.net/?p=419544#comment-1570 Hi,

I see some blogs said that the internal IP which sends HTTP request for warming up hostnames is 127.0.0.1

https://www.robhabraken.nl/index.php/2929/hot-swappin/

So is that correct or they are only 10.0.0.0 and 100.0.0.0

]]>
By: Ruslan https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-1464 Sat, 08 Jun 2019 05:44:55 +0000 http://ruslany.net/?p=419544#comment-1464 In reply to Diep Nguyen.

Yes, that’s correct.

]]>
By: Diep Nguyen https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-1452 Sat, 08 Jun 2019 02:45:35 +0000 http://ruslany.net/?p=419544#comment-1452 Hi,

If I configure to use Local Cache so the staging slot will restart 2 times?
first time for applying app setting coying from production slot and the second time after coying sites data to local cache?

Thank you.

]]>
By: Ruslan https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-1126 Sat, 01 Jun 2019 04:24:55 +0000 http://ruslany.net/?p=419544#comment-1126 In reply to Alex KeySmith.

No, you do not need to do the last step because the IP restriction is enforced on frontends not on web workers now.

]]>
By: Alex KeySmith https://ruslany.net/2017/11/most-common-deployment-slot-swap-failures-and-how-to-fix-them/#comment-1098 Fri, 07 Sep 2018 13:00:05 +0000 http://ruslany.net/?p=419544#comment-1098 Hi,
An enlightening post thanks!

I was wondering with the release of the new ip restrictions on the front end worker (if I understand the feature correctly), do you still need to do your last point?

“Web App has IP restriction rules that prevent the swap process from connecting to it. In that case you’ll need to allow the internal IP address range used by the swap process”

thanks
Alex.

]]>