Skip to content

Commit

Permalink
Added env variables in main.bicep for function app
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasanjeet-Microsoft committed Jul 17, 2024
1 parent 6210255 commit 8dd0d67
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down Expand Up @@ -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
}
}
}
Expand Down
10 changes: 7 additions & 3 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "10368627789026861374"
"templateHash": "10957511334188011911"
}
},
"parameters": {
Expand Down Expand Up @@ -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')]"
}
}
},
Expand Down Expand Up @@ -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')]"
}
}
},
Expand Down

0 comments on commit 8dd0d67

Please sign in to comment.