lean
lean

Reputation: 194

Swap Slots on Windows Azure but don't copy AppSettings

I noticed that when I want to swap slots on Azure the whole configuration will also be copied. I have a lot of environment-specific settings that i wanted to have configured automatically on a swap. So for example, i want that the ENVIRONMENT_TYPE of the test slot stays on TEST and doesn't change to DEV.

How to change this option?

UPDATE: Azure Portal has changed a lot in the past 8 years, question is out of date

Upvotes: 3

Views: 1273

Answers (1)

Jane
Jane

Reputation: 851

In the Azure Preview Portal, you can mark individual AppSettings as "Slot Setting" which means that they won't get swapped. This is described at https://azure.microsoft.com/en-gb/documentation/articles/web-sites-staged-publishing/.

You can access the Preview Portal at https://ms.portal.azure.com/. Choose Browse everything and select your Web-App. On the blade for your web-app, there is a box called Deployment Slots. If you select this, it will list the available Deployment slots - choose the one that you wish to modify, and you can then mark the individual App Settings as "Slot Setting".

Upvotes: 5

Related Questions