Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
529040a
added extra logs
Dhruvkumar-Microsoft Oct 22, 2025
bb9b257
remove the extra prompt
Dhruvkumar-Microsoft Oct 22, 2025
850f90d
removed commented code
Dhruvkumar-Microsoft Oct 22, 2025
bc5c857
updated post deployment script issue fix
AjitPadhi-Microsoft Nov 10, 2025
9b87ab9
Merge pull request #616 from microsoft/post-avm-script-fix
Roopan-Microsoft Nov 12, 2025
eb478c8
added the supress of opentelemetry Warning
Dhruvkumar-Microsoft Nov 13, 2025
ab34cd0
Merge pull request #622 from microsoft/psl-bug-25839
Roopan-Microsoft Nov 13, 2025
a0fe2ba
updated fastmcp version
Kanchan-Microsoft Nov 13, 2025
88c3096
Add Deletion icon in team selector
NirajC-Microsoft Nov 13, 2025
b80ff6f
Merge pull request #623 from microsoft/psl-bugv3-26397
Roopan-Microsoft Nov 13, 2025
639941a
Merge pull request #624 from Kanchan-Microsoft/main
Roopan-Microsoft Nov 13, 2025
89a50d5
Merge branch 'microsoft:main' into main
Kanchan-Microsoft Nov 14, 2025
81915a8
removed main.json
Kanchan-Microsoft Nov 14, 2025
08f528a
Merge pull request #630 from Kanchan-Microsoft/main
Roopan-Microsoft Nov 14, 2025
91e466f
downgrade fastmcp version
Kanchan-Microsoft Nov 14, 2025
8a51bab
Merge pull request #633 from microsoft/psl-macae-kn
Roopan-Microsoft Nov 17, 2025
fa90b94
Merge pull request #1 from microsoft/main
Kanchan-Microsoft Nov 18, 2025
5ea30f2
removed condition to use the auth enable while authetication added
Dhruvkumar-Microsoft Nov 19, 2025
68625e8
Merge pull request #646 from microsoft/psl-bug-26540
Roopan-Microsoft Nov 20, 2025
bce4832
Merge branch 'dev-v3' of https://github.com/microsoft/Multi-Agent-Cus…
Dhruvkumar-Microsoft Nov 20, 2025
a2c77bf
resolved the pytlint issue
Dhruvkumar-Microsoft Nov 20, 2025
d7c8b5e
upgraded uvicorn version
Kanchan-Microsoft Nov 20, 2025
52f22db
Merge branch 'microsoft:main' into main
Kanchan-Microsoft Nov 20, 2025
a339555
added the logs
Dhruvkumar-Microsoft Nov 20, 2025
bb443b4
Merge branch 'dev-v3' into main
Kanchan-Microsoft Nov 20, 2025
3f4db96
Merge pull request #651 from Kanchan-Microsoft/main
Roopan-Microsoft Nov 20, 2025
a575069
Merge pull request #653 from microsoft/main
Prajwal-Microsoft Nov 20, 2025
778853f
updated the deploymentguide.md
Dhruvkumar-Microsoft Nov 21, 2025
6848e71
Merge pull request #654 from microsoft/psl-deploymentguide-dk
Roopan-Microsoft Nov 21, 2025
a433f76
Merge pull request #648 from microsoft/psl-extralogs
Roopan-Microsoft Nov 21, 2025
a3c81f8
Add Log Analytics workspace deletion guide and update deployment notes
Abdul-Microsoft Nov 21, 2025
acce3b0
Merge pull request #656 from microsoft/psl-loganalyticsdeletionguide
Roopan-Microsoft Nov 24, 2025
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
75 changes: 63 additions & 12 deletions docs/DeploymentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ If you are done trying out the application, you can delete all resources by runn
```shell
azd down
```
> **Note:** If you deployed with `enableRedundancy=true` and Log Analytics workspace replication is enabled, you must first disable replication before running `azd down` else resource group delete will fail. Follow the steps in [Handling Log Analytics Workspace Deletion with Replication Enabled](./LogAnalyticsReplicationDisable.md), wait until replication returns `false`, then run `azd down`.

# Local setup

Expand Down Expand Up @@ -442,7 +443,8 @@ The files for the dev container are located in `/.devcontainer/` folder.
- Make sure to set APP_ENV to "**dev**" in `.env` file.
- For local development, make sure to include below env variables in the `.env`
- `BACKEND_API_URL=http://localhost:8000`
- `FRONTEND_SITE_NAME=http://127.0.0.1:3000` .
- `FRONTEND_SITE_NAME=http://127.0.0.1:3000`
- `MCP_SERVER_ENDPOINT=http://localhost:9000/mcp`.

7. **(Optional) Set up a virtual environment:**

Expand Down Expand Up @@ -474,7 +476,16 @@ The files for the dev container are located in `/.devcontainer/` folder.
npm run build
```

10. **Run the application:**
10. **Install requirements - MCP server:**

- To install the requirement for mcp server -
Open a terminal in the `src/mcp_server` folder and run:
```bash
pip install uv
uv sync
```

11. **Run the application:**

- From the `src/backend` directory activate the virtual environment created through step 8 and Run:

Expand All @@ -494,14 +505,20 @@ or Run
npm run dev
```

- From the `src/mcp_server` directory activate the virtual environment created through step 10 and Run:

```bash
python mcp_server.py --transport streamable-http --host 0.0.0.0 --port 9000
```

11. Open a browser and navigate to `http://localhost:3000`
12. To see swagger API documentation, you can navigate to `http://localhost:8000/docs`

## Deploy Your local changes
To Deploy your local changes rename the below files.
1. Rename `azure.yaml` to `azure_custom2.yaml` and `azure_custom.yaml` to `azure.yaml`.
2. Go to `infra` directory
- Remove `main.bicep` to `main_custom2.bicep` and `main_custom.bicep` to `main.bicep`.
- Rename `main.bicep` to `main_custom2.bicep` and `main_custom.bicep` to `main.bicep`.
Continue with the [deploying steps](#deploying-with-azd).


Expand All @@ -510,15 +527,26 @@ Continue with the [deploying steps](#deploying-with-azd).
You can debug the API backend running locally with VSCode using the following launch.json entry:

```
{
"name": "Python Debugger: Backend",
"type": "debugpy",
"request": "launch",
"cwd": "${workspaceFolder}/src/backend",
"module": "uvicorn",
"args": ["app:app", "--reload"],
"jinja": true
}
{
"name": "Debug Backend (FastAPI)",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/src/backend/app_kernel.py",
"cwd": "${workspaceFolder}/src/backend",
"console": "integratedTerminal",
"justMyCode": false,
"python": "${workspaceFolder}/src/backend/.venv/Scripts/python.exe",
"env": {
"PYTHONPATH": "${workspaceFolder}/src/backend",
"UVICORN_LOG_LEVEL": "debug"
},
"args": [],
"serverReadyAction": {
"pattern": "Uvicorn running on (https?://[^\\s]+)",
"uriFormat": "%s",
"action": "openExternally"
}
}
```

To debug the python server in the frontend directory (frontend_server.py) and related, add the following launch.json entry:
Expand All @@ -534,3 +562,26 @@ To debug the python server in the frontend directory (frontend_server.py) and re
"jinja": true
}
```

To debug the MCP server by adding the following launch.json entry:

```
{
"name": "Debug MCP Server",
"type": "debugpy",
"request": "launch",
"program": "${workspaceFolder}/src/mcp_server/mcp_server.py",
"cwd": "${workspaceFolder}/src/mcp_server",
"console": "integratedTerminal",
"justMyCode": false,
"python": "${workspaceFolder}/src/mcp_server/.venv/Scripts/python.exe",
"env": {
"PYTHONPATH": "${workspaceFolder}/src/mcp_server"
},
"args": [
"--transport", "streamable-http",
"--host", "0.0.0.0",
"--port", "9000"
]
}
```
28 changes: 28 additions & 0 deletions docs/LogAnalyticsReplicationDisable.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 🛠 Handling Log Analytics Workspace Deletion with Replication Enabled

If redundancy (replication) is enabled for your Log Analytics workspace, you must disable it before deleting the workspace or resource group. Otherwise, deletion will fail.

## ✅ Steps to Disable Replication Before Deletion
Run the following Azure CLI command. Note: This operation may take about 5 minutes to complete.

```bash
az resource update --ids "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{logAnalyticsName}" --set properties.replication.enabled=false
```

Replace:
- `{subscriptionId}` → Your Azure subscription ID
- `{resourceGroupName}` → The name of your resource group
- `{logAnalyticsName}` → The name of your Log Analytics workspace

Optional: Verify replication disabled (should output `false`):
```bash
az resource show --ids "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{logAnalyticsName}" --query properties.replication.enabled -o tsv
```

## ✅ After Disabling Replication
You can safely delete:
- The Log Analytics workspace (manual)
- The resource group (manual), or
- All provisioned resources via `azd down`

Return to: [Deployment Guide](./DeploymentGuide.md)
Loading
Loading