diff --git a/infra/main.bicep b/infra/main.bicep index 71a653c2..df4f1adb 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -934,6 +934,18 @@ module avmContainerApp 'br/public:avm/res/app/container-app:0.19.0' = { name: 'APP_ENV' value: 'prod' } + { + name: 'APP_LOGGING_LEVEL' + value: 'INFO' + } + { + name: 'AZURE_PACKAGE_LOGGING_LEVEL' + value: 'WARNING' + } + { + name: 'AZURE_LOGGING_PACKAGES' + value: '' + } ] } ] @@ -982,6 +994,18 @@ module avmContainerApp_API 'br/public:avm/res/app/container-app:0.19.0' = { name: 'APP_ENV' value: 'prod' } + { + name: 'APP_LOGGING_LEVEL' + value: 'INFO' + } + { + name: 'AZURE_PACKAGE_LOGGING_LEVEL' + value: 'WARNING' + } + { + name: 'AZURE_LOGGING_PACKAGES' + value: '' + } ] probes: [ // Liveness Probe - Checks if the app is still running @@ -1270,18 +1294,6 @@ module avmAppConfig 'br/public:avm/res/app-configuration/configuration-store:0.9 name: 'APP_CPS_PROCESSES' value: 'cps-processes' } - { - name: 'APP_LOGGING_LEVEL' - value: 'INFO' - } - { - name: 'AZURE_PACKAGE_LOGGING_LEVEL' - value: 'WARNING' - } - { - name: 'AZURE_LOGGING_PACKAGES' - value: '' - } { name: 'APP_MESSAGE_QUEUE_EXTRACT' value: 'content-pipeline-extract-queue' @@ -1390,6 +1402,18 @@ module avmContainerApp_update 'br/public:avm/res/app/container-app:0.19.0' = { name: 'APP_ENV' value: 'prod' } + { + name: 'APP_LOGGING_LEVEL' + value: 'INFO' + } + { + name: 'AZURE_PACKAGE_LOGGING_LEVEL' + value: 'WARNING' + } + { + name: 'AZURE_LOGGING_PACKAGES' + value: '' + } ] } ] @@ -1449,6 +1473,18 @@ module avmContainerApp_API_update 'br/public:avm/res/app/container-app:0.19.0' = name: 'APP_ENV' value: 'prod' } + { + name: 'APP_LOGGING_LEVEL' + value: 'INFO' + } + { + name: 'AZURE_PACKAGE_LOGGING_LEVEL' + value: 'WARNING' + } + { + name: 'AZURE_LOGGING_PACKAGES' + value: '' + } ] probes: [ // Liveness Probe - Checks if the app is still running diff --git a/infra/main.json b/infra/main.json index 70291159..19c31913 100644 --- a/infra/main.json +++ b/infra/main.json @@ -6,7 +6,7 @@ "_generator": { "name": "bicep", "version": "0.37.4.10188", - "templateHash": "17737076781026161010" + "templateHash": "11428630106677040832" }, "name": "Content Processing Solution Accelerator", "description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance." @@ -35231,6 +35231,11 @@ "principalId": "[reference('avmContainerApp').outputs.systemAssignedMIPrincipalId.value]", "roleDefinitionIdOrName": "Cognitive Services OpenAI User", "principalType": "ServicePrincipal" + }, + { + "principalId": "[reference('avmContainerApp').outputs.systemAssignedMIPrincipalId.value]", + "roleDefinitionIdOrName": "Azure AI Developer", + "principalType": "ServicePrincipal" } ] }, @@ -40908,10 +40913,10 @@ "dependsOn": [ "avmContainerApp", "avmManagedIdentity", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", "logAnalyticsWorkspace", "virtualNetwork" ] @@ -43513,8 +43518,8 @@ "dependsOn": [ "avmContainerApp", "avmManagedIdentity", - "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]", "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]", + "[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]", "virtualNetwork" ] }, @@ -44999,6 +45004,18 @@ { "name": "APP_ENV", "value": "prod" + }, + { + "name": "APP_LOGGING_LEVEL", + "value": "INFO" + }, + { + "name": "AZURE_PACKAGE_LOGGING_LEVEL", + "value": "WARNING" + }, + { + "name": "AZURE_LOGGING_PACKAGES", + "value": "" } ] } @@ -46599,6 +46616,18 @@ { "name": "APP_ENV", "value": "prod" + }, + { + "name": "APP_LOGGING_LEVEL", + "value": "INFO" + }, + { + "name": "AZURE_PACKAGE_LOGGING_LEVEL", + "value": "WARNING" + }, + { + "name": "AZURE_LOGGING_PACKAGES", + "value": "" } ], "probes": [ @@ -55856,18 +55885,6 @@ "name": "APP_CPS_PROCESSES", "value": "cps-processes" }, - { - "name": "APP_LOGGING_LEVEL", - "value": "INFO" - }, - { - "name": "AZURE_PACKAGE_LOGGING_LEVEL", - "value": "WARNING" - }, - { - "name": "AZURE_LOGGING_PACKAGES", - "value": "" - }, { "name": "APP_MESSAGE_QUEUE_EXTRACT", "value": "content-pipeline-extract-queue" @@ -60404,6 +60421,18 @@ { "name": "APP_ENV", "value": "prod" + }, + { + "name": "APP_LOGGING_LEVEL", + "value": "INFO" + }, + { + "name": "AZURE_PACKAGE_LOGGING_LEVEL", + "value": "WARNING" + }, + { + "name": "AZURE_LOGGING_PACKAGES", + "value": "" } ] } @@ -62003,6 +62032,18 @@ { "name": "APP_ENV", "value": "prod" + }, + { + "name": "APP_LOGGING_LEVEL", + "value": "INFO" + }, + { + "name": "AZURE_PACKAGE_LOGGING_LEVEL", + "value": "WARNING" + }, + { + "name": "AZURE_LOGGING_PACKAGES", + "value": "" } ], "probes": [