Khalil
Khalil

Reputation: 1107

How to slot specific setting for a slot that is being swapped

I have a preprod slot on azure web app that is swapped to production slot. It has same configuration that production slot will have except redirectUrl. I am using azure devops pipelines to automate the process.

I need the redirectUrl in prepod slot to have different value to verify application working before swapping.

How to have a slot specific setting for a slot that is being swapped to another slot? I want to avoid one setting being swapped.

Upvotes: 1

Views: 748

Answers (1)

Suki Ji-MSFT
Suki Ji-MSFT

Reputation: 753

Here are the settings that change when you swap slots.

Settings that are swapped:

enter image description here

Settings that aren't swapped:

enter image description here

To configure an app setting or connection string to stick to a specific slot (not swapped), go to the Configuration page for that slot. Add or edit a setting, and then select deployment slot setting. Selecting this check box tells App Service that the setting is not swappable. You could also refer to Which settings are swapped for more information.

enter image description here

Upvotes: 2

Related Questions