diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 82f0941b1..11f4dd947 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -137,6 +137,7 @@ jobs: imageTag="${IMAGE_TAG}" \ azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \ gptModelCapacity=150 \ + createdBy="Pipeline" \ --output json - name: Extract Web App and API App URLs diff --git a/docs/DeploymentGuide.md b/docs/DeploymentGuide.md index 7cc4aced2..ce9e88f08 100644 --- a/docs/DeploymentGuide.md +++ b/docs/DeploymentGuide.md @@ -370,16 +370,23 @@ The files for the dev container are located in `/.devcontainer/` folder. - If you are using `venv`, create and activate your virtual environment for both the frontend and backend folders. -8. **Install requirements - frontend:** +8. **Install requirements - Backend:** - - In each of the frontend and backend folders - - Open a terminal in the `src` folder and run: + - To install the requirement for backend - + Open a terminal in the `src/backend` folder and run: ```bash - pip install -r requirements.txt + pip install uv + uv sync ``` 9. **Build the frontend (important):** + - To install the requirement for frontend - + Open a terminal in the `src/frontend` folder and run: + ```bash + pip install -r requirements.txt + ``` + - Before running the frontend server, you must build the frontend to generate the necessary `build/assets` directory. From the `src/frontend` directory, run: @@ -391,7 +398,7 @@ The files for the dev container are located in `/.devcontainer/` folder. 10. **Run the application:** -- From the src/backend directory: +- From the `src/backend` directory activate the virtual environment created through step 8 and Run: ```bash python app_kernel.py @@ -403,8 +410,14 @@ python app_kernel.py python frontend_server.py ``` -10. Open a browser and navigate to `http://localhost:3000` -11. To see swagger API documentation, you can navigate to `http://localhost:8000/docs` +or Run + + ```bash + npm run dev + ``` + +11. Open a browser and navigate to `http://localhost:3000` +12. To see swagger API documentation, you can navigate to `http://localhost:8000/docs` ## Debugging the solution locally diff --git a/infra/main.bicep b/infra/main.bicep index 1fc9582c4..8bedd7894 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -165,6 +165,28 @@ var replicaLocation = replicaRegionPairs[location] // Resources // // ============== // + +var allTags = union( + { + 'azd-env-name': solutionName + }, + tags +) +@description('Optional created by user name') +param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0] + +resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = { + name: 'default' + properties: { + tags: { + ...allTags + TemplateName: 'MACAE' + CreatedBy: createdBy + } + } +} + + #disable-next-line no-deployments-resources resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableTelemetry) { name: '46d3xbcp.ptn.sa-multiagentcustauteng.${replace('-..--..-', '.', '-')}.${substring(uniqueString(deployment().name, location), 0, 4)}'