Skip to content

Commit 1aeada0

Browse files
committed
azuredeploy.bicep - update app service
1 parent 6f7d6db commit 1aeada0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Labs/deploy/azuredeploy.bicep

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ resource appServiceWeb 'Microsoft.Web/sites@2022-03-01' = {
245245
siteConfig: {
246246
linuxFxVersion: 'NODE|20-lts'
247247
appCommandLine: 'pm2 serve /home/site/wwwroot/dist --no-daemon --spa'
248+
alwaysOn: true
248249
}
249250
}
250251
}
@@ -306,6 +307,7 @@ resource appServiceApi 'Microsoft.Web/sites@2022-03-01' = {
306307
httpsOnly: true
307308
siteConfig: {
308309
linuxFxVersion: 'PYTHON|3.12'
310+
alwaysOn: true
309311
}
310312
}
311313
}
@@ -317,6 +319,10 @@ resource appServiceApiSettings 'Microsoft.Web/sites/config@2022-03-01' = {
317319
properties: {
318320
ENABLE_ORYX_BUILD: 'true'
319321
SCM_DO_BUILD_DURING_DEPLOYMENT: 'true'
322+
WEBSITE_ENABLE_DEFAULT_CODE_PROFILER: 'true'
323+
APPINSIGHTS_INSTRUMENTATIONKEY: appServiceWebInsights.properties.InstrumentationKey
324+
APPINSIGHTS_PROFILERFEATURE_VERSION: '1.0.0'
325+
DiagnosticServices_EXTENSION_VERSION: '~3'
320326
OPENAI__ENDPOINT: openAiAccount.properties.endpoint
321327
OPENAI__KEY: openAiAccount.listKeys().key1
322328
OPENAI__EMBEDDINGSDEPLOYMENT: openAiEmbeddingsModelDeployment.name

0 commit comments

Comments
 (0)