Skip to content

Commit 16a7542

Browse files
Merge branch 'dev' into infra-avm-waf
2 parents 347c79d + 0df22c1 commit 16a7542

29 files changed

+2607
-2336
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Run tests with coverage
5252
if: env.skip_tests == 'false'
5353
run: |
54-
pytest --cov=. --cov-report=term-missing --cov-report=xml
54+
pytest --cov=. --cov-report=term-missing --cov-report=xml --ignore=tests/e2e-test/tests
5555
5656
- name: Skip coverage report if no tests
5757
if: env.skip_tests == 'true'

docs/CustomizingAzdParameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ By default this template will use the environment name as the prefix to prevent
99
| Name | Type | Default Value | Purpose |
1010
| ------------------------------- | ------ | ----------------- | --------------------------------------------------------------------------------------------------- |
1111
| `AZURE_ENV_NAME` | string | `macae` | Used as a prefix for all resource names to ensure uniqueness across environments. |
12-
| `AZURE_LOCATION` | string | `swedencentral` | Location of the Azure resources. Controls where the infrastructure will be deployed. |
13-
| `AZURE_ENV_OPENAI_LOCATION` | string | `swedencentral` | Specifies the region for OpenAI resource deployment. |
12+
| `AZURE_LOCATION` | string | `<User selects during deployment>` | Location of the Azure resources. Controls where the infrastructure will be deployed. |
13+
| `AZURE_ENV_OPENAI_LOCATION` | string | `<User selects during deployment>` | Specifies the region for OpenAI resource deployment. |
1414
| `AZURE_ENV_MODEL_DEPLOYMENT_TYPE` | string | `GlobalStandard` | Defines the deployment type for the AI model (e.g., Standard, GlobalStandard). |
1515
| `AZURE_ENV_MODEL_NAME` | string | `gpt-4o` | Specifies the name of the GPT model to be deployed. |
1616
| `AZURE_ENV_FOUNDRY_PROJECT_ID` | string | `<Existing Workspace Id>` | Set this if you want to reuse an AI Foundry Project instead of creating a new one. |

docs/DeploymentGuide.md

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ Once you've opened the project in [Codespaces](#github-codespaces), [Dev Contain
219219

220220
7. If you are done trying out the application, you can delete the resources by running `azd down`.
221221

222+
223+
### 🛠️ Troubleshooting
224+
If you encounter any issues during the deployment process, please refer [troubleshooting](../docs/TroubleShootingSteps.md) document for detailed steps and solutions.
225+
222226
# Local setup
223227

224228
> **Note for macOS Developers**: If you are using macOS on Apple Silicon (ARM64) the DevContainer will **not** work. This is due to a limitation with the Azure Functions Core Tools (see [here](https://github.com/Azure/azure-functions-core-tools/issues/3112)).
@@ -233,7 +237,7 @@ The easiest way to run this accelerator is in a VS Code Dev Containers, which wi
233237

234238
## Detailed Development Container setup instructions
235239

236-
The solution contains a [development container](https://code.visualstudio.com/docs/remote/containers) with all the required tooling to develop and deploy the accelerator. To deploy the Chat With Your Data accelerator using the provided development container you will also need:
240+
The solution contains a [development container](https://code.visualstudio.com/docs/remote/containers) with all the required tooling to develop and deploy the accelerator. To deploy the Multi-Agent solutions accelerator using the provided development container you will also need:
237241

238242
- [Visual Studio Code](https://code.visualstudio.com)
239243
- [Remote containers extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
@@ -287,7 +291,7 @@ The files for the dev container are located in `/.devcontainer/` folder.
287291

288292
- You can use the Bicep extension for VSCode (Right-click the `.bicep` file, then select "Show deployment plan") or use the Azure CLI:
289293
```bash
290-
az deployment group create -g <resource-group-name> -f deploy/macae-dev.bicep --query 'properties.outputs'
294+
az deployment group create -g <resource-group-name> -f infra/main.bicep --query 'properties.outputs'
291295
```
292296
- **Note**: You will be prompted for a `principalId`, which is the ObjectID of your user in Entra ID. To find it, use the Azure Portal or run:
293297
@@ -301,7 +305,7 @@ The files for the dev container are located in `/.devcontainer/` folder.
301305
302306
**Role Assignments in Bicep Deployment:**
303307
304-
The **macae-dev.bicep** deployment includes the assignment of the appropriate roles to AOAI and Cosmos services. If you want to modify an existing implementation—for example, to use resources deployed as part of the simple deployment for local debugging—you will need to add your own credentials to access the Cosmos and AOAI services. You can add these permissions using the following commands:
308+
The **main.bicep** deployment includes the assignment of the appropriate roles to AOAI and Cosmos services. If you want to modify an existing implementation—for example, to use resources deployed as part of the simple deployment for local debugging—you will need to add your own credentials to access the Cosmos and AOAI services. You can add these permissions using the following commands:
305309
306310
```bash
307311
az cosmosdb sql role assignment create --resource-group <solution-accelerator-rg> --account-name <cosmos-db-account-name> --role-definition-name "Cosmos DB Built-in Data Contributor" --principal-id <aad-user-object-id> --scope /subscriptions/<subscription-id>/resourceGroups/<solution-accelerator-rg>/providers/Microsoft.DocumentDB/databaseAccounts/<cosmos-db-account-name>
@@ -320,11 +324,21 @@ The files for the dev container are located in `/.devcontainer/` folder.
320324
321325
5. **Create a `.env` file:**
322326
323-
- Navigate to the `src` folder and create a `.env` file based on the provided `.env.sample` file.
327+
- Navigate to the `src\backend` folder and create a `.env` file based on the provided `.env.sample` file.
328+
- Update the `.env` file with the required values from your Azure resource group in Azure Portal App Service environment variables.
329+
- Alternatively, if resources were
330+
provisioned using `azd provision` or `azd up`, a `.env` file is automatically generated in the `.azure/<env-name>/.env`
331+
file. You can copy the contents of this file into your backend `.env` file.
332+
333+
_**Note**: To get your `<env-name>` run `azd env list` to see which env is default._
324334
325335
6. **Fill in the `.env` file:**
326336
327337
- Use the output from the deployment or check the Azure Portal under "Deployments" in the resource group.
338+
- Make sure to set APP_ENV to "**dev**" in `.env` file.
339+
- For local development, make sure to include below env variables in the `.env`
340+
- `BACKEND_API_URL=http://localhost:8000`
341+
- `FRONTEND_SITE_NAME=http://127.0.0.1:3000` .
328342
329343
7. **(Optional) Set up a virtual environment:**
330344
@@ -337,8 +351,19 @@ The files for the dev container are located in `/.devcontainer/` folder.
337351
```bash
338352
pip install -r requirements.txt
339353
```
354+
355+
9. **Build the frontend (important):**
356+
357+
- Before running the frontend server, you must build the frontend to generate the necessary `build/assets` directory.
358+
359+
From the `src/frontend` directory, run:
360+
361+
```bash
362+
npm install
363+
npm run build
364+
```
340365
341-
9. **Run the application:**
366+
10. **Run the application:**
342367
343368
- From the src/backend directory:
344369

docs/LocalDeployment.md

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)