Skip to content

Commit 4f441dc

Browse files
added all the environment variable in bicep needed for local setup
1 parent 725eb07 commit 4f441dc

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

infra/main.bicep

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ param enableTelemetry bool = true
1818

1919
param existingLogAnalyticsWorkspaceId string = ''
2020

21+
param azureopenaiVersion string = '2025-01-01-preview'
22+
2123
// Restricting deployment to only supported Azure OpenAI regions validated with GPT-4o model
2224
@metadata({
2325
azd : {
@@ -1000,7 +1002,7 @@ module containerApp 'br/public:avm/res/app/container-app:0.14.2' = if (container
10001002
}
10011003
{
10021004
name: 'AZURE_OPENAI_API_VERSION'
1003-
value: '2025-01-01-preview' //TODO: set parameter/variable
1005+
value: azureopenaiVersion
10041006
}
10051007
{
10061008
name: 'APPLICATIONINSIGHTS_INSTRUMENTATION_KEY'
@@ -1718,3 +1720,21 @@ type webSiteConfigurationType = {
17181720
@description('Optional. The tag of the container image to be used by the Web Site.')
17191721
containerImageTag: string?
17201722
}
1723+
1724+
1725+
output COSMOSDB_ENDPOINT string = 'https://${cosmosDbResourceName}.documents.azure.com:443/'
1726+
output COSMOSDB_DATABASE string = cosmosDbDatabaseName
1727+
output COSMOSDB_CONTAINER string = cosmosDbDatabaseMemoryContainerName
1728+
output AZURE_OPENAI_ENDPOINT string = 'https://${aiFoundryAiServicesResourceName}.openai.azure.com/'
1729+
output AZURE_OPENAI_MODEL_NAME string = aiFoundryAiServicesModelDeployment.name
1730+
output AZURE_OPENAI_DEPLOYMENT_NAME string = aiFoundryAiServicesModelDeployment.name
1731+
output AZURE_OPENAI_API_VERSION string = azureopenaiVersion
1732+
// output APPLICATIONINSIGHTS_INSTRUMENTATION_KEY string = applicationInsights.outputs.instrumentationKey
1733+
// output AZURE_AI_PROJECT_ENDPOINT string = aiFoundryAiServices.outputs.aiProjectInfo.apiEndpoint
1734+
output AZURE_AI_SUBSCRIPTION_ID string = subscription().subscriptionId
1735+
output AZURE_AI_RESOURCE_GROUP string = resourceGroup().name
1736+
output AZURE_AI_PROJECT_NAME string = aiFoundryAiProjectName
1737+
output AZURE_AI_MODEL_DEPLOYMENT_NAME string = aiFoundryAiServicesModelDeployment.name
1738+
// output APPLICATIONINSIGHTS_CONNECTION_STRING string = applicationInsights.outputs.connectionString
1739+
output AZURE_AI_AGENT_MODEL_DEPLOYMENT_NAME string = aiFoundryAiServicesModelDeployment.name
1740+
output AZURE_AI_AGENT_ENDPOINT string = aiFoundryAiServices.outputs.aiProjectInfo.apiEndpoint

0 commit comments

Comments
 (0)