diff --git a/README.md b/README.md index c84c56a7a..b1856fc3d 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ There are several ways to deploy the solution. You can deploy to run in Azure i

-[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2FMulti-Agent-Custom-Automation-Engine-Solution-Accelerator%2Frefs%2Fheads%2Fmain%2Fdeploy%2Fmacae-continer-oc.json) +[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2FMulti-Agent-Custom-Automation-Engine-Solution-Accelerator%2Frefs%2Fheads%2Fmain%2Fdeploy%2Fmacae-container-oc.json) When Deployment is complete, follow steps in [Set Up Authentication in Azure App Service](./documentation/azure_app_service_auth_setup.md) to add app authentication to your web app running on Azure App Service diff --git a/deploy/macae-continer-oc.json b/deploy/macae-container-oc.json similarity index 100% rename from deploy/macae-continer-oc.json rename to deploy/macae-container-oc.json diff --git a/deploy/macae-continer.bicep b/deploy/macae-container.bicep similarity index 100% rename from deploy/macae-continer.bicep rename to deploy/macae-container.bicep diff --git a/deploy/macae-dev.bicep b/deploy/macae-dev.bicep index e50d27001..d8cdb5035 100644 --- a/deploy/macae-dev.bicep +++ b/deploy/macae-dev.bicep @@ -63,6 +63,29 @@ resource devAoaiRoleAssignment 'Microsoft.Authorization/roleAssignments@2022-04- } } +resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2023-09-01' = { + name: format(uniqueNameFormat, 'logs') + location: location + tags: tags + properties: { + retentionInDays: 30 + sku: { + name: 'PerGB2018' + } + } +} + +resource appInsights 'Microsoft.Insights/components@2020-02-02-preview' = { + name: format(uniqueNameFormat, 'appins') + location: location + kind: 'web' + properties: { + Application_Type: 'web' + WorkspaceResourceId: logAnalytics.id + } +} + + resource cosmos 'Microsoft.DocumentDB/databaseAccounts@2024-05-15' = { name: format(uniqueNameFormat, 'cosmos') location: cosmosLocation @@ -130,4 +153,4 @@ output COSMOSDB_CONTAINER string = cosmos::autogenDb::memoryContainer.name output AZURE_OPENAI_ENDPOINT string = openai.properties.endpoint output AZURE_OPENAI_DEPLOYMENT_NAME string = openai::gpt4o.name output AZURE_OPENAI_API_VERSION string = aoaiApiVersion - +output APPLICATIONINSIGHTS_INSTRUMENTATION_KEY string = appInsights.properties.ConnectionString diff --git a/src/backend/.env.sample b/src/backend/.env.sample index 6179939f0..ae983633a 100644 --- a/src/backend/.env.sample +++ b/src/backend/.env.sample @@ -6,6 +6,7 @@ AZURE_OPENAI_ENDPOINT= AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o AZURE_OPENAI_API_VERSION=2024-08-01-preview APPLICATIONINSIGHTS_INSTRUMENTATION_KEY= +AZURE_OPENAI_API_KEY= BACKEND_API_URL='http://localhost:8000' FRONTEND_SITE_NAME='http://127.0.0.1:3000' \ No newline at end of file