@Nouvel R ,
Please see the link above.
<rant>It is sometimes too hard to get your question through</rant> :)
You can use this in your ARM Template or Bicep to manage Slot App Settings.
The names you specify in the corresponding string arrays becomes "Slot" settings - the little tiny mini checkbox that says "slot setting" gets checked.
IMHO, Microsoft should have made this a property of the appSetting, storageSetting and connectionStrings.
This is so error-prone. What if the name you give in this string array does not exist as a setting? LOL.
Here is a Bicep blurb - please note the name of the slotConfig_resource, it has to be "slotConfigNames".
param appService_SlotAppSettings array = [
'setting1'
'setting2'
'setting3'
'setting4'
]
resource appService_resource 'Microsoft.Web/sites@2021-01-01' = {
name: 'yourAppServiceName'
location: resourceGroup().location
}
resource slotConfig_resource 'Microsoft.Web/sites/config@2021-01-01' = {
name: 'slotConfigNames'
parent: appService_resource
properties:{
'appSettingNames': appService_SlotAppSettings
}
}