Deployment slot settings copied during swap and not restored after revert

Vitor Leitao 5 Reputation points
2025-08-26T09:43:55.45+00:00

We’ve hit a strange issue with Azure Web App deployment slots.

2 Web Apps were set up with Environment Variables marked as “Deployment slot setting.”

  • When performing a swap (Staging → Production), instead of staying in their respective slots, all Staging Environment Variables were copied to Production, and Production settings were moved into Staging.
  • When we attempted another swap to roll back, one of the apps correctly restored Production’s original configuration, but the other app ended up with both slots using the Staging configuration.

This is unexpected because slot-specific settings should stay pinned to their respective slot during a swap. We’ve done many swaps on these apps before and never hit this.

Questions:

Is this a known bug or regression in slot-swap behavior?

  1. Is there any official documentation describing scenarios where slot-specific settings can still be swapped or overridden?
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
{count} vote

1 answer

Sort by: Most helpful
  1. Vitor Leitao 5 Reputation points
    2025-08-27T08:01:42.23+00:00

    Hi @Bhargavi Naragani

    Has this behaviour changed? We've done hundreds of these swaps over the years and settings marked as Deployment slot setting never copied over before. I can assure you at 100% that the settings that are being copied have not changed in multiple releases and some have not changed in years.

    From my point of view, the settings pinned in either side with Deployment slot setting (in our case it was pinned in both sides) should never be moved over between slots.

    Is this a behaviour change from Azure, a bug?

    Kind Regards,

    Vitor Leitao

    0 comments No comments

Your answer

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