Skip to content

Commit 5ece756

Browse files
authored
14743#Azure App Service Settings task does not overwrite values as ex… (#15343)
* 14743#Azure App Service Settings task does not overwrite values as expected PR-1 * 14743#Updated AzureAppname
1 parent f28252c commit 5ece756

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

common-npm-packages/AzureRmDeploy-common/azure-arm-rest/azure-arm-app-service.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ export class AzureAppService {
263263
tl.debug(`Slot setting updated for key : ${addProperties[key].name}`);
264264
isNewValueUpdated = true;
265265
}
266+
else if ((addProperties[key].slotSetting == false || (addProperties[key].slotSetting == null)) && appSettingNames != null ) {
267+
const index = appSettingNames.indexOf(addProperties[key].name, 0);
268+
if (index > -1) {
269+
appSettingNames.splice(index, 1);
270+
}
271+
isNewValueUpdated = true;
272+
}
266273
}
267274

268275
if(isNewValueUpdated) {

common-npm-packages/AzureRmDeploy-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-tasks-azurermdeploycommon",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Common Lib for Azure ARM REST apis",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)