Insights

Azure Deployment Slot Troubleshooting

Intro

Over the past year, we have moved many clients over to using Azure Deployment Slots.

When setting up deployment slots there are a few common issues that you can run into. I'll cover each of them in this blog and provide advice for how they can be resolved.

Site Restart On Swap

This is a common issue with deployment slots whenever you initiate a swap, the production site will be restarted causing an outage.

To counter-act this issue, add the following setting to your application settings on your App Service:

This needs to be added to the production slot and the backup slot, I would reccomend adding it to your backup slot first, and after you intiate your first swap, add it to the new backup slot. There is potential downtime when changing settings in your App Service.

Cannot Swap Slots Due To 'Another Operation Is In Progress'

This issue occurs when you attempt to swap with a specfic setting enabled on the deployment slot.

This is a more recent issue we have seen recently, luckily this is an easy fix, if you are copying App settings over, make sure to not include the WEBSITE_LOCAL_CACHE_OPTION in the backup slot. To make sure this setting persists during a swap, enable it as a deployment slot setting in your main site slot.

Closing

Hopefully our experiences with deployment slots helps you avoid the issues we have had in the future.

👋 Hey Sitecore Enthusiasts!

Sign up to our bi-weekly newsletter for a bite-sized curation of valuable insight from the Sitecore community.

What’s in it for you?

  • Stay up-to-date with the latest Sitecore news
  • New to Sitecore? Learn tips and tricks to help you navigate this powerful tool
  • Sitecore pro? Expand your skill set and discover troubleshooting tips
  • Browse open careers and opportunities
  • Get a chance to be featured in upcoming editions
  • Learn our secret handshake
  • And more!
Sitecore Snack a newsletter by Fishtank Consulting