diff --git a/Tasks/AzureAppServiceManageV0/operations/ContinuousMonitoringUtils.ts b/Tasks/AzureAppServiceManageV0/operations/ContinuousMonitoringUtils.ts index 958ffa0cd7cc..19b72c628e1c 100644 --- a/Tasks/AzureAppServiceManageV0/operations/ContinuousMonitoringUtils.ts +++ b/Tasks/AzureAppServiceManageV0/operations/ContinuousMonitoringUtils.ts @@ -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'] diff --git a/Tasks/AzureAppServiceManageV0/task.json b/Tasks/AzureAppServiceManageV0/task.json index 803ca2a10344..46cdd4af94d8 100644 --- a/Tasks/AzureAppServiceManageV0/task.json +++ b/Tasks/AzureAppServiceManageV0/task.json @@ -18,8 +18,8 @@ "demands": [], "version": { "Major": 0, - "Minor": 184, - "Patch": 1 + "Minor": 195, + "Patch": 0 }, "minimumAgentVersion": "1.102.0", "instanceNameFormat": "$(Action): $(WebAppName)", diff --git a/Tasks/AzureAppServiceManageV0/task.loc.json b/Tasks/AzureAppServiceManageV0/task.loc.json index cbeab0d752cd..705a37098e59 100644 --- a/Tasks/AzureAppServiceManageV0/task.loc.json +++ b/Tasks/AzureAppServiceManageV0/task.loc.json @@ -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",