From 27fed1343e024904a39f6ec5d077024148bfee4c Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Mon, 6 May 2024 12:32:35 +1000 Subject: [PATCH] Force App Service Diagnostic Logging --- .cruft.json | 2 +- infra/core/host/appservice.bicep | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.cruft.json b/.cruft.json index 9a94f1f..418f8f2 100644 --- a/.cruft.json +++ b/.cruft.json @@ -1,6 +1,6 @@ { "template": "https://github.com/Azure-Samples/Azure-Python-Standardization-Template-Generator", - "commit": "071985944385a0faa5d5510469b94eac92339d1f", + "commit": "a8bbfb5f41e1b73129167cd91c50671ad604e206", "checkout": null, "context": { "cookiecutter": { diff --git a/infra/core/host/appservice.bicep b/infra/core/host/appservice.bicep index 85aac63..b1e7b01 100644 --- a/infra/core/host/appservice.bicep +++ b/infra/core/host/appservice.bicep @@ -17,8 +17,6 @@ param runtimeName string param runtimeNameAndVersion string = '${runtimeName}|${runtimeVersion}' param runtimeVersion string -param enableDiagnosticLogging bool = true - // Microsoft.Web/sites Properties param kind string = 'app,linux' @@ -61,9 +59,9 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = { allowedOrigins: union([ 'https://portal.azure.com', 'https://ms.portal.azure.com' ], allowedOrigins) } // Diagnostic logging - detailedErrorLoggingEnabled: enableDiagnosticLogging - httpLoggingEnabled: enableDiagnosticLogging - requestTracingEnabled: enableDiagnosticLogging + detailedErrorLoggingEnabled: true + httpLoggingEnabled: true + requestTracingEnabled: true } clientAffinityEnabled: clientAffinityEnabled httpsOnly: true