From 78b9bf5e5c070fc85d79181b10b29737095825e2 Mon Sep 17 00:00:00 2001 From: Ben Outram Date: Mon, 8 Jul 2024 09:38:20 +0100 Subject: [PATCH] EES-5283 Add missing app setting AppSettings__MetaInsertBatchSize --- .../templates/public-api/components/functionApp.bicep | 6 +++--- infrastructure/templates/public-api/main.bicep | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/infrastructure/templates/public-api/components/functionApp.bicep b/infrastructure/templates/public-api/components/functionApp.bicep index 1dcadb381fe..c6de98b7d21 100644 --- a/infrastructure/templates/public-api/components/functionApp.bicep +++ b/infrastructure/templates/public-api/components/functionApp.bicep @@ -27,8 +27,8 @@ param appServicePlanOS string = 'Linux' ]) param functionAppRuntime string = 'dotnet' -@description('Specifies the additional setting to add to the functionapp.') -param settings object = {} +@description('Specifies the additional setting to add to the Function App') +param appSettings object = {} @description('A set of tags with which to tag the resource in Azure') param tagValues object @@ -401,7 +401,7 @@ module functionAppSlotSettings 'appServiceSlotConfig.bicep' = { // site is being viewed. 'SLOT_NAME' ] - commonSettings: union(settings, { + commonSettings: union(appSettings, { // This tells the Function App where to store its "azure-webjobs-hosts" and "azure-webjobs-secrets" files. AzureWebJobsStorage: '@Microsoft.KeyVault(VaultName=${keyVaultName};SecretName=${sharedStorageAccountModule.outputs.connectionStringSecretName})' diff --git a/infrastructure/templates/public-api/main.bicep b/infrastructure/templates/public-api/main.bicep index cab9e2a1a9a..2acf8f7086a 100644 --- a/infrastructure/templates/public-api/main.bicep +++ b/infrastructure/templates/public-api/main.bicep @@ -393,6 +393,9 @@ module dataProcessorFunctionAppModule 'components/functionApp.bicep' = { path: '/api/HealthCheck' unhealthyMetricName: '${subscription}PublicDataProcessorUnhealthy' } + appSettings: { + AppSettings__MetaInsertBatchSize: 1000 + } azureFileShares: [{ storageName: dataFilesFileShareModule.outputs.fileShareName storageAccountKey: publicApiStorageAccountAccessKey