Skip to content

Commit d042fd8

Browse files
Merge branch 'main' into psl-waf-macaev3
2 parents 40bc54b + 492517f commit d042fd8

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ jobs:
134134
gptModelDeploymentType="GlobalStandard" \
135135
gptModelName="gpt-4o" \
136136
gptModelVersion="2024-08-06" \
137-
imageTag="${IMAGE_TAG}" \
137+
backendContainerImageTag="${IMAGE_TAG}" \
138+
frontendContainerImageTag="${IMAGE_TAG}" \
138139
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
139140
gptModelCapacity=150 \
141+
createdBy="Pipeline" \
140142
--output json
141143
142144
- name: Extract Web App and API App URLs

docs/DeploymentGuide.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,6 @@ The files for the dev container are located in `/.devcontainer/` folder.
374374
375375
- To install the requirement for backend -
376376
Open a terminal in the `src/backend` folder and run:
377-
378377
```bash
379378
pip install uv
380379
uv sync
@@ -399,7 +398,7 @@ The files for the dev container are located in `/.devcontainer/` folder.
399398
400399
10. **Run the application:**
401400
402-
- From the src/backend directory activate the virtual environment created through step 8:
401+
- From the `src/backend` directory activate the virtual environment created through step 8 and Run:
403402
404403
```bash
405404
python app_kernel.py
@@ -411,10 +410,15 @@ python app_kernel.py
411410
python frontend_server.py
412411
```
413412
413+
or Run
414+
415+
```bash
416+
npm run dev
417+
```
418+
414419
11. Open a browser and navigate to `http://localhost:3000`
415420
12. To see swagger API documentation, you can navigate to `http://localhost:8000/docs`
416421
417-
418422
## Deploy Your local changes
419423
To Deploy your local changes rename the below files.
420424
1. Rename `azure.yaml` to `azure_custom2.yaml` and `azure_custom.yaml` to `azure.yaml`.

infra/main.bicep

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,28 @@ var replicaLocation = replicaRegionPairs[location]
196196
// Resources //
197197
// ============== //
198198

199+
200+
var allTags = union(
201+
{
202+
'azd-env-name': solutionName
203+
},
204+
tags
205+
)
206+
@description('Optional created by user name')
207+
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
208+
209+
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
210+
name: 'default'
211+
properties: {
212+
tags: {
213+
...allTags
214+
TemplateName: 'MACAE'
215+
CreatedBy: createdBy
216+
}
217+
}
218+
}
219+
220+
199221
#disable-next-line no-deployments-resources
200222
resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) {
201223
name: '46d3xbcp.ptn.sa-multiagentcustauteng.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'

0 commit comments

Comments
 (0)