You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the yaml task AzureAppServiceSettings@1here , I am able to make any variable's slotSetting equal to true in my app service's appsettings configuration, but I am unable to change it back to false without manual intervention (which is not possible in my prod environment). The value of the setting always updates but not the slotSetting boolean value.
After some investigation I've noticed that AzureAppServiceSettings@1 calls appServiceUtility.updateAndMonitorAppSettings(...) which is here, and that calls both appService.patchApplicationSettings(...) (line 164) and appService.patchApplicationSettingsSlot(...) (line 192) which is here. The value of the property is always updated by patchApplicationSettings, but not the 'slotSetting' boolean value. I believe the problem is in patchApplicationSettingsSlot. If I set an appsetting with slotSetting = true then the code here will update the value and slotSetting value to true, however if slotSetting = false then it ignores it completely and will not edit the slotSetting value back to false.
This is causing a problem in our deployment because there are some variables that were previously set as slotSetting = true that we now wish to change to slotSetting = false so that the value will move over when we swap slots for our app service in azure from staging to production. However because of this bug the slotSetting is never changed to false even though we explicitly tell it to.
The text was updated successfully, but these errors were encountered:
Using the yaml task
AzureAppServiceSettings@1
here , I am able to make any variable'sslotSetting
equal to true in my app service's appsettings configuration, but I am unable to change it back to false without manual intervention (which is not possible in my prod environment). The value of the setting always updates but not the slotSetting boolean value.After some investigation I've noticed that
AzureAppServiceSettings@1
callsappServiceUtility.updateAndMonitorAppSettings(...)
which is here, and that calls bothappService.patchApplicationSettings(...)
(line 164) andappService.patchApplicationSettingsSlot(...)
(line 192) which is here. The value of the property is always updated bypatchApplicationSettings
, but not the 'slotSetting' boolean value. I believe the problem is inpatchApplicationSettingsSlot
. If I set an appsetting withslotSetting = true
then the code here will update the value and slotSetting value to true, however ifslotSetting = false
then it ignores it completely and will not edit the slotSetting value back to false.This is causing a problem in our deployment because there are some variables that were previously set as
slotSetting = true
that we now wish to change toslotSetting = false
so that the value will move over when we swap slots for our app service in azure from staging to production. However because of this bug the slotSetting is never changed to false even though we explicitly tell it to.The text was updated successfully, but these errors were encountered: