Skip to content

Commit

Permalink
Enable Continuous Monitoring Task failing on Azure DevOps Pipeline #1… (
Browse files Browse the repository at this point in the history
#15414)

* Enable Continuous Monitoring Task failing on Azure DevOps Pipeline #15188

* fix for Enable Continuous Monitoring Task failing on Azure DevOps Pipeline
  • Loading branch information
v-jkarri authored Oct 25, 2021
1 parent 3c55f04 commit 4ebdbc1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ export async function enableContinuousMonitoring(endpoint: AzureEndpoint, appSer
}

appInsightsResource.tags["hidden-link:" + appDetails.id] = "Resource";
tl.debug('Modifying request to call update API');
var appInsightsResourceTemp=appInsightsResource;
if(appInsightsResourceTemp.properties.WorkspaceResourceId ){
delete appInsightsResourceTemp.properties.WorkspaceResourceId;
}
if(appInsightsResourceTemp.properties.IngestionMode ){
delete appInsightsResourceTemp.properties.IngestionMode;
}
tl.debug('Link app insights with app service via tag');
await appInsights.update(appInsightsResource);
await appInsights.update(appInsightsResourceTemp);
tl.debug('Link app service with app insights via instrumentation key');
await appService.patchApplicationSettings({
"APPINSIGHTS_INSTRUMENTATIONKEY": appInsightsResource.properties['InstrumentationKey']
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AzureAppServiceManageV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"demands": [],
"version": {
"Major": 0,
"Minor": 184,
"Patch": 1
"Minor": 195,
"Patch": 0
},
"minimumAgentVersion": "1.102.0",
"instanceNameFormat": "$(Action): $(WebAppName)",
Expand Down
4 changes: 2 additions & 2 deletions Tasks/AzureAppServiceManageV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"demands": [],
"version": {
"Major": 0,
"Minor": 184,
"Patch": 1
"Minor": 195,
"Patch": 0
},
"minimumAgentVersion": "1.102.0",
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",
Expand Down

0 comments on commit 4ebdbc1

Please sign in to comment.