in src/appservice-rest/Arm/azure-app-service.ts [394:413]
public async patchConnectionStringSlot(addProperties: any): Promise<any> {
var connectionStringSlotSettings = await this.getSlotConfigurationNames();
let connectionStringNames = connectionStringSlotSettings.properties.connectionStringNames;
var isNewValueUpdated: boolean = false;
if(connectionStringNames) {
for(var key in addProperties) {
if(addProperties[key].slotSetting == true) {
if((connectionStringNames.length == 0) || (!connectionStringNames.includes(key))) {
connectionStringNames.push(key);
}
core.debug(`Slot setting updated for key : ${key}`);
isNewValueUpdated = true;
}
}
}
if(isNewValueUpdated) {
await this.updateSlotConfigSettings(connectionStringSlotSettings);
}
}