Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ To add your newly created backend image:
name: 'FRONTEND_SITE_NAME'
value: 'https://<website Name>.azurewebsites.net'

name: 'APPLICATIONINSIGHTS_INSTRUMENTATION_KEY'
value: <Application Insights Instrumentation Key>

- Click 'Save' and deploy your new revision

To add the new container to your website run the following:
Expand Down
10 changes: 8 additions & 2 deletions deploy/macae-continer-oc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "17567587246932458853"
"version": "0.27.1.19265",
"templateHash": "11215378996849738193"
}
},
"parameters": {
Expand Down Expand Up @@ -225,6 +225,7 @@
"principalType": "ServicePrincipal"
},
"dependsOn": [
"aoaiUserRoleDefinition",
"containerApp",
"openai"
]
Expand Down Expand Up @@ -366,13 +367,18 @@
{
"name": "FRONTEND_SITE_NAME",
"value": "[format('https://{0}.azurewebsites.net', format(variables('uniqueNameFormat'), 'frontend'))]"
},
{
"name": "APPLICATIONINSIGHTS_INSTRUMENTATION_KEY",
"value": "[reference('appInsights').ConnectionString]"
}
]
}
]
}
},
"dependsOn": [
"appInsights",
"cosmos::autogenDb",
"containerAppEnv",
"cosmos",
Expand Down
4 changes: 4 additions & 0 deletions deploy/macae-continer.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
name: 'FRONTEND_SITE_NAME'
value: 'https://${format(uniqueNameFormat, 'frontend')}.azurewebsites.net'
}
{
name: 'APPLICATIONINSIGHTS_INSTRUMENTATION_KEY'
value: appInsights.properties.ConnectionString
}
]
}
]
Expand Down
1 change: 1 addition & 0 deletions src/backend/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ COSMOSDB_CONTAINER=memory
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o
AZURE_OPENAI_API_VERSION=2024-08-01-preview
APPLICATIONINSIGHTS_INSTRUMENTATION_KEY=

BACKEND_API_URL='http://localhost:8000'
FRONTEND_SITE_NAME='http://127.0.0.1:3000'
Loading