Failed to swap slots: Cannot modify this site because another operation is in progress.

Finn Kay 0 Reputation points
2026-01-14T09:05:08.18+00:00

Failed to swap slots 'staging' and 'production': Cannot modify this site because another operation is in progress. Details: App Service Managed certificate xxx for hostname xxx is being created with http validation for this site. Please wait until the operation is done before proceeding to slot swap.

I get the above message trying to sway staging and production slots since yesterday afternoon. I have worked around by pushing 100% traffic to the staging sot for now but this needs sorting.

I have checked for pending ops and I can't find any, I have tried removing the binding and re-adding along with restarting the service and still I get this error.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

1 answer

Sort by: Most helpful
  1. Praneeth Maddali 4,120 Reputation points Microsoft External Staff Moderator
    2026-01-14T19:18:30.9533333+00:00

    Hello @Finn Kay

    I'm glad to hear the slot swap issue has now been resolved.

    The error was caused by an App Service Managed Certificate undergoing HTTP validation. During this process, the platform locks the site to prevent configuration changes, including slot swaps. Even if no operations appear in the portal, backend certificate tasks may still be running, which temporarily blocks slot operations.

    Once validation completed, the lock cleared automatically—hence the issue resolving after some time.

    Reference : https://learn.microsoft.com/en-us/azure/app-service/deploy-staging-slots?tabs=portal#troubleshoot-swap-failures

    https://learn.microsoft.com/en-us/azure/app-service/configure-ssl-certificate?tabs=apex%2Crbac%2Cazure-cli#app-service-managed-certificates

    Kindly let us know if the above helps or you need further assistance on this issue.

     

    Please "upvote" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.