From f9c6ebb7c0e1411b7d62182b03b6bdfa34489dff Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Fri, 25 Oct 2024 14:07:56 -0700 Subject: [PATCH 1/2] Add needed env var for app insights --- infra/core/host/appservice.bicep | 1 + 1 file changed, 1 insertion(+) diff --git a/infra/core/host/appservice.bicep b/infra/core/host/appservice.bicep index cd00e3f774..b8d502c8da 100644 --- a/infra/core/host/appservice.bicep +++ b/infra/core/host/appservice.bicep @@ -102,6 +102,7 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = { { SCM_DO_BUILD_DURING_DEPLOYMENT: string(scmDoBuildDuringDeployment) ENABLE_ORYX_BUILD: string(enableOryxBuild) + ApplicationInsightsAgent_EXTENSION_VERSION: '~2' }, runtimeName == 'python' ? { PYTHON_ENABLE_GUNICORN_MULTIWORKERS: 'true' } : {}, !empty(applicationInsightsName) ? { APPLICATIONINSIGHTS_CONNECTION_STRING: applicationInsights.properties.ConnectionString } : {}, From 240c4eec2ac6100d382012ad2be634691024a5e6 Mon Sep 17 00:00:00 2001 From: Pamela Fox Date: Fri, 25 Oct 2024 14:12:51 -0700 Subject: [PATCH 2/2] Version depends on linux vs windows --- infra/core/host/appservice.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/core/host/appservice.bicep b/infra/core/host/appservice.bicep index b8d502c8da..aa73ab69d7 100644 --- a/infra/core/host/appservice.bicep +++ b/infra/core/host/appservice.bicep @@ -102,7 +102,7 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = { { SCM_DO_BUILD_DURING_DEPLOYMENT: string(scmDoBuildDuringDeployment) ENABLE_ORYX_BUILD: string(enableOryxBuild) - ApplicationInsightsAgent_EXTENSION_VERSION: '~2' + ApplicationInsightsAgent_EXTENSION_VERSION: contains(kind, 'linux') ? '~3' : '~2' }, runtimeName == 'python' ? { PYTHON_ENABLE_GUNICORN_MULTIWORKERS: 'true' } : {}, !empty(applicationInsightsName) ? { APPLICATIONINSIGHTS_CONNECTION_STRING: applicationInsights.properties.ConnectionString } : {},