Skip to content

Commit

Permalink
chore: add storage account env to container
Browse files Browse the repository at this point in the history
  • Loading branch information
manekinekko committed Oct 3, 2024
1 parent 68b8e0d commit 4d613f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions infra/app/llamaindex-azure-dynamic-session.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ param azureOpenAiDeploymentName string
param azureOpenAiEndpoint string
param azureOpenAiApiVersion string
param dynamicSessionsName string
param storageAccountName string
param storageContainerName string

@description('The name of the container image')
param imageName string = ''
Expand Down Expand Up @@ -134,6 +136,14 @@ resource app 'Microsoft.App/containerApps@2023-05-02-preview' = {
name: 'AZURE_TENANT_ID'
value: identity.properties.tenantId
}
{
name: 'AZURE_STORAGE_ACCOUNT'
value: storageAccountName
}
{
name: 'AZURE_STORAGE_CONTAINER'
value: storageContainerName
}
],
env,
map(secrets, secret => {
Expand Down
2 changes: 2 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ module llamaIndexAzureDynamicSession './app/llamaindex-azure-dynamic-session.bic
azureOpenAiDeploymentName: azureOpenAiDeploymentName
azureOpenAiApiVersion: azureOpenAiApiVersion
azureOpenAiEndpoint: azureOpenAi.outputs.endpoint
storageAccountName: storage.outputs.name
storageContainerName: storageContainerName
}
scope: rg
}
Expand Down

0 comments on commit 4d613f2

Please sign in to comment.