From 4a88affee2eb8e641edf9eae5fef3e998eaed270 Mon Sep 17 00:00:00 2001 From: Prasanjeet-Microsoft Date: Thu, 18 Jul 2024 13:38:38 +0530 Subject: [PATCH] fix: Added missing env variables in main.bicep for function app (#1147) --- infra/main.bicep | 4 ++++ infra/main.json | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index b7184c763..e5e2f1f08 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -892,6 +892,8 @@ module function './app/function.bicep' = if (hostingModel == 'code') { DOCUMENT_PROCESSING_QUEUE_NAME: queueName ORCHESTRATION_STRATEGY: orchestrationStrategy LOGLEVEL: logLevel + AZURE_OPENAI_SYSTEM_MESSAGE: azureOpenAISystemMessage + AZURE_SEARCH_TOP_K: azureSearchTopK } } } @@ -949,6 +951,8 @@ module function_docker './app/function.bicep' = if (hostingModel == 'container') DOCUMENT_PROCESSING_QUEUE_NAME: queueName ORCHESTRATION_STRATEGY: orchestrationStrategy LOGLEVEL: logLevel + AZURE_OPENAI_SYSTEM_MESSAGE: azureOpenAISystemMessage + AZURE_SEARCH_TOP_K: azureSearchTopK } } } diff --git a/infra/main.json b/infra/main.json index 7c14a0e26..974f84a42 100644 --- a/infra/main.json +++ b/infra/main.json @@ -5,7 +5,7 @@ "_generator": { "name": "bicep", "version": "0.28.1.47646", - "templateHash": "10368627789026861374" + "templateHash": "10957511334188011911" } }, "parameters": { @@ -7609,7 +7609,9 @@ "USE_ADVANCED_IMAGE_PROCESSING": "[parameters('useAdvancedImageProcessing')]", "DOCUMENT_PROCESSING_QUEUE_NAME": "[variables('queueName')]", "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]", - "LOGLEVEL": "[parameters('logLevel')]" + "LOGLEVEL": "[parameters('logLevel')]", + "AZURE_OPENAI_SYSTEM_MESSAGE": "[parameters('azureOpenAISystemMessage')]", + "AZURE_SEARCH_TOP_K": "[parameters('azureSearchTopK')]" } } }, @@ -8848,7 +8850,9 @@ "USE_ADVANCED_IMAGE_PROCESSING": "[parameters('useAdvancedImageProcessing')]", "DOCUMENT_PROCESSING_QUEUE_NAME": "[variables('queueName')]", "ORCHESTRATION_STRATEGY": "[parameters('orchestrationStrategy')]", - "LOGLEVEL": "[parameters('logLevel')]" + "LOGLEVEL": "[parameters('logLevel')]", + "AZURE_OPENAI_SYSTEM_MESSAGE": "[parameters('azureOpenAISystemMessage')]", + "AZURE_SEARCH_TOP_K": "[parameters('azureSearchTopK')]" } } },