Skip to content
Closed
Show file tree
Hide file tree
Changes from all 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
28 changes: 16 additions & 12 deletions azure.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
environment:
name: multi-agent-custom-automation-engine-solution-accelerator
location: eastus

name: multi-agent-custom-automation-engine-solution-accelerator
# metadata:
# template: [email protected]
parameters:
baseUrl:
type: string
default: 'https://github.com/TravisHilbert/Modernize-your-code-solution-accelerator'
deployment:
mode: Incremental
template: ./infra/main.bicep # Path to the main.bicep file inside the 'deployment' folder
metadata:
template: [email protected]
services:
backend:
project: src/backend
host: containerapp
language: python
docker:
path: Dockerfile
frontend:
project: src/frontend
host: containerapp
language: python
docker:
path: Dockerfile
5 changes: 3 additions & 2 deletions infra/main.bicep
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
@description('Location for all resources.')
param location string = 'EastUS2' //Fixed for model availability, change back to resourceGroup().location
param location string //Fixed for model availability, change back to resourceGroup().location


@description('Location for OpenAI resources.')
param azureOpenAILocation string = 'japaneast' //Fixed for model availability



@description('A prefix to add to the start of all resource names. Note: A "unique" suffix will also be added')
param prefix string = 'macaeo'
param prefix string = take('macaeo-${uniqueString(resourceGroup().id)}', 10)

@description('Tags to apply to all deployed resources')
param tags object = {}
Expand Down
22 changes: 11 additions & 11 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.34.44.8038",
"templateHash": "2906892014954666053"
"version": "0.28.1.47646",
"templateHash": "1631755345697758847"
}
},
"parameters": {
"location": {
"type": "string",
"defaultValue": "EastUS2",
"metadata": {
"description": "Location for all resources."
}
Expand All @@ -26,7 +25,7 @@
},
"prefix": {
"type": "string",
"defaultValue": "macaeo",
"defaultValue": "[take(format('macaeo-{0}', uniqueString(resourceGroup().id)), 10)]",
"metadata": {
"description": "A prefix to add to the start of all resource names. Note: A \"unique\" suffix will also be added"
}
Expand Down Expand Up @@ -245,6 +244,7 @@
},
"dependsOn": [
"aiServices",
"aoaiUserRoleDefinition",
"containerApp"
]
},
Expand Down Expand Up @@ -403,9 +403,9 @@
"dependsOn": [
"aiServices",
"appInsights",
"cosmos::autogenDb",
"containerAppEnv",
"cosmos",
"cosmos::autogenDb",
"cosmos::autogenDb::memoryContainer",
"pullIdentity"
],
Expand Down Expand Up @@ -500,8 +500,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.34.44.8038",
"templateHash": "10664495342911727649"
"version": "0.28.1.47646",
"templateHash": "9096960510978747660"
}
},
"parameters": {
Expand Down Expand Up @@ -638,8 +638,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.34.44.8038",
"templateHash": "12550713338937452696"
"version": "0.28.1.47646",
"templateHash": "8215150938757657777"
}
},
"parameters": {
Expand Down Expand Up @@ -1028,8 +1028,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.34.44.8038",
"templateHash": "11364190519186458619"
"version": "0.28.1.47646",
"templateHash": "15814429030073463584"
}
},
"parameters": {
Expand Down
3 changes: 2 additions & 1 deletion next-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ To troubleshoot any issues, see [troubleshooting](#troubleshooting).

### Configure environment variables for running services

Configure environment variables for running services by updating `settings` in [main.parameters.json](./infra/main.parameters.json).
Environment variables can be configured by modifying the `env` settings in [resources.bicep](./infra/resources.bicep).
To define a secret, add the variable as a `secretRef` pointing to a `secrets` entry or a stored KeyVault secret.

### Configure CI/CD pipeline

Expand Down
2 changes: 2 additions & 0 deletions src/backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
fastapi
uvicorn
autogen-agentchat==0.4.0dev1
autogen-core==0.4.0dev1
azure-cosmos
azure-monitor-opentelemetry
azure-monitor-events-extension
Expand Down
Loading