Skip to content

Commit 4ebdbc1

Browse files
authored
Enable Continuous Monitoring Task failing on Azure DevOps Pipeline #1… (#15414)
* Enable Continuous Monitoring Task failing on Azure DevOps Pipeline #15188 * fix for Enable Continuous Monitoring Task failing on Azure DevOps Pipeline
1 parent 3c55f04 commit 4ebdbc1

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

Tasks/AzureAppServiceManageV0/operations/ContinuousMonitoringUtils.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ export async function enableContinuousMonitoring(endpoint: AzureEndpoint, appSer
2424
}
2525

2626
appInsightsResource.tags["hidden-link:" + appDetails.id] = "Resource";
27+
tl.debug('Modifying request to call update API');
28+
var appInsightsResourceTemp=appInsightsResource;
29+
if(appInsightsResourceTemp.properties.WorkspaceResourceId ){
30+
delete appInsightsResourceTemp.properties.WorkspaceResourceId;
31+
}
32+
if(appInsightsResourceTemp.properties.IngestionMode ){
33+
delete appInsightsResourceTemp.properties.IngestionMode;
34+
}
2735
tl.debug('Link app insights with app service via tag');
28-
await appInsights.update(appInsightsResource);
36+
await appInsights.update(appInsightsResourceTemp);
2937
tl.debug('Link app service with app insights via instrumentation key');
3038
await appService.patchApplicationSettings({
3139
"APPINSIGHTS_INSTRUMENTATIONKEY": appInsightsResource.properties['InstrumentationKey']

Tasks/AzureAppServiceManageV0/task.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"demands": [],
1919
"version": {
2020
"Major": 0,
21-
"Minor": 184,
22-
"Patch": 1
21+
"Minor": 195,
22+
"Patch": 0
2323
},
2424
"minimumAgentVersion": "1.102.0",
2525
"instanceNameFormat": "$(Action): $(WebAppName)",

Tasks/AzureAppServiceManageV0/task.loc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"demands": [],
1919
"version": {
2020
"Major": 0,
21-
"Minor": 184,
22-
"Patch": 1
21+
"Minor": 195,
22+
"Patch": 0
2323
},
2424
"minimumAgentVersion": "1.102.0",
2525
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",

0 commit comments

Comments
 (0)