Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e2dd7b0
New version following agreed standards and compliant with AVM WAF con…
alguadam Aug 6, 2025
0e97262
Refactor Azure credential retrieval to use AZURE_CLIENT_ID across mul…
Abdul-Microsoft Aug 11, 2025
9d6ecbd
Refactor Cosmos DB role definitions and assignments for clarity and c…
Abdul-Microsoft Aug 12, 2025
240f5cf
Merge all the changes from main
Abdul-Microsoft Aug 13, 2025
a99914c
Fix the user assigned identity issue and added quota check, removed h…
Abdul-Microsoft Aug 13, 2025
422c8fb
Added more parameters
Abdul-Microsoft Aug 13, 2025
7a0b86b
Fixes for the command shared by Alvaro
Abdul-Microsoft Aug 14, 2025
7290f29
Merge pull request #379 from microsoft/psl-avmwafchanges
Abdul-Microsoft Aug 14, 2025
b42f0fd
Refactor private DNS zone configurations
Abdul-Microsoft Aug 19, 2025
8ee525d
Added changes to reuse the existing log analytics
Abdul-Microsoft Aug 20, 2025
68ef958
Added bicep changes related to reuse existing foundry project
Abdul-Microsoft Aug 21, 2025
b30dc15
restricting dns zone creation based on reuse existing foundry project
Abdul-Microsoft Aug 21, 2025
e2b5e13
Refactor AI project module: consolidate parameters and outputs for be…
alguadam Aug 22, 2025
e305238
Refactor AI project output structure and remove unused modules
alguadam Aug 25, 2025
169a654
Refactor AI services module: remove deprecated deployments module and…
alguadam Aug 25, 2025
efcf54f
Refactor AI project parameters: rename existing AI Foundry resource I…
alguadam Aug 25, 2025
53107c9
Update .gitignore: add patterns to ignore Bicep and ARM local paramet…
alguadam Aug 26, 2025
c6d5947
Refactor AI Foundry AI Services module: remove commented-out code and…
alguadam Aug 26, 2025
e16ac5f
Refactor AI services module: update aiServicesName assignment to hand…
alguadam Aug 26, 2025
b9b8f24
Refactor AI Foundry AI Services module: add comment for implicit depe…
alguadam Aug 26, 2025
f3f30f7
Refactor AI Foundry AI Services module: simplify aiServicesName assig…
alguadam Aug 26, 2025
072d611
Refactor AI Foundry AI Services module: streamline resource group and…
alguadam Aug 26, 2025
70cc0e7
Refactor parameter files: rename existingFoundryProjectResourceId to …
Abdul-Microsoft Aug 26, 2025
d3a313c
Merge pull request #395 from microsoft/psl-avmwfchanges-alguadam
Roopan-Microsoft Aug 26, 2025
347c79d
Merge pull request #391 from microsoft/psl-avmwafchanges
alguadam Aug 26, 2025
16a7542
Merge branch 'dev' into infra-avm-waf
Roopan-Microsoft Sep 1, 2025
5532fb1
bicep udpated post downmerge
Roopan-Microsoft Sep 1, 2025
16a3ea8
always enable public network access for Container App Environment and…
Abdul-Microsoft Sep 1, 2025
8b7b2b8
Remove unused private endpoint configurations and ensure public netwo…
Abdul-Microsoft Sep 1, 2025
557f57d
Update AZURE_OPENAI_ENDPOINT
Abdul-Microsoft Sep 1, 2025
a2f76b0
fixed the unit test case issue in test_cosmos_memory.py
Abdul-Microsoft Sep 2, 2025
9e7cd5a
Merge pull request #416 from microsoft/infra-avm-waf
Roopan-Microsoft Sep 2, 2025
bdbf325
Enhance documentation and configuration for Azure deployment paramete…
Abdul-Microsoft Sep 2, 2025
b339965
Fix link formatting for main.parameters.json in Deployment Guide
Abdul-Microsoft Sep 2, 2025
b3c771f
Fix formatting issue in Deployment Guide for main.parameters.json ref…
Abdul-Microsoft Sep 2, 2025
9c2983c
Merge pull request #421 from microsoft/infra-avm-waf
Roopan-Microsoft Sep 2, 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
14 changes: 8 additions & 6 deletions .github/workflows/deploy-waf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,15 @@ jobs:
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
--template-file infra/main.bicep \
--parameters \
environmentName=${{ env.SOLUTION_PREFIX }} \
useWafAlignedArchitecture=true \
aiDeploymentsLocation='${{ env.AZURE_LOCATION }}' \
solutionName=${{ env.SOLUTION_PREFIX }} \
location="${{ env.AZURE_LOCATION }}" \
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
gptModelCapacity=5 \
virtualMachineConfiguration='{"adminUsername": "adminuser", "adminPassword": "P@ssw0rd1234"}' \
logAnalyticsWorkspaceConfiguration='{"existingWorkspaceResourceId": ""}'

enableTelemetry=true \
enableMonitoring=true \
enablePrivateNetworking=true \
enableScalability=true \


- name: Send Notification on Failure
if: failure()
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,14 @@ jobs:
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
--template-file infra/main.bicep \
--parameters \
environmentName=${{ env.SOLUTION_PREFIX }} \
solutionLocation="${{ env.AZURE_LOCATION }}" \
modelDeploymentType="GlobalStandard" \
solutionName=${{ env.SOLUTION_PREFIX }} \
location="${{ env.AZURE_LOCATION }}" \
gptModelDeploymentType="GlobalStandard" \
gptModelName="gpt-4o" \
gptModelVersion="2024-08-06" \
imageTag="${IMAGE_TAG}" \
useWafAlignedArchitecture=false \
aiDeploymentsLocation='${{ env.AZURE_LOCATION }}' \
azureAiServiceLocation='${{ env.AZURE_LOCATION }}' \
gptModelCapacity=150 \
logAnalyticsWorkspaceConfiguration='{"dataRetentionInDays": 30, "existingWorkspaceResourceId": ""}' \
applicationInsightsConfiguration='{"retentionInDays": 30}' \
virtualNetworkConfiguration='{"enabled": false}' \
webServerFarmConfiguration='{"skuCapacity": 1, "skuName": "B2"}' \
--output json

- name: Extract Web App and API App URLs
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -458,3 +458,7 @@ __pycache__/
*.whl
.azure
.github/copilot-instructions.md

# Bicep local files
*.local*.bicepparam
*.local*.parameters.json
2 changes: 2 additions & 0 deletions docs/CustomizingAzdParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ By default this template will use the environment name as the prefix to prevent
| `AZURE_ENV_IMAGETAG` | string | `latest` | Docker image tag used for container deployments. |
| `AZURE_ENV_ENABLE_TELEMETRY` | bool | `true` | Enables telemetry for monitoring and diagnostics. |
| `AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID` | string | Guide to get your [Existing Workspace ID](/docs/re-use-log-analytics.md) | Set this if you want to reuse an existing Log Analytics Workspace instead of creating a new one. |
| `AZURE_ENV_VM_ADMIN_USERNAME` | string | `take(newGuid(), 20)` | The administrator username for the virtual machine. |
| `AZURE_ENV_VM_ADMIN_PASSWORD` | string | `newGuid()` | The administrator password for the virtual machine. |
---

## How to Set a Parameter
Expand Down
56 changes: 41 additions & 15 deletions docs/DeploymentGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,42 +26,68 @@ Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass

This will allow the scripts to run for the current session without permanently changing your system's policy.

### **Azure Developer CLI (azd) Requirement**

Ensure that you are using the latest version of the [Azure Developer CLI](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/overview).
The `azd` version must be **1.18.0 or higher**.

Upgrade commands by OS:

* **Windows (using winget):**

```bash
winget install microsoft.azd
```

* **Linux (using apt):**

```bash
curl -fsSL https://aka.ms/install-azd.sh | bash
```

* **macOS (using Homebrew):**

```bash
brew update && brew tap azure/azd && brew install azd
```

## Deployment Options & Steps

### Sandbox or WAF Aligned Deployment Options

The [`infra`](../infra) folder of the Multi Agent Solution Accelerator contains the [`main.bicep`](../infra/main.bicep) Bicep script, which defines all Azure infrastructure components for this solution.

When running `azd up`, you’ll now be prompted to choose between a **WAF-aligned configuration** and a **sandbox configuration** using a simple selection:
By default, the `azd up` command uses the [`main.parameters.json`](../infra/main.parameters.json) file to deploy the solution. This file is pre-configured for a **sandbox environment** — ideal for development and proof-of-concept scenarios, with minimal security and cost controls for rapid iteration.

- A **sandbox environment** — ideal for development and proof-of-concept scenarios, with minimal security and cost controls for rapid iteration.
For **production deployments**, the repository also provides [`main.waf.parameters.json`](../infra/main.waf.parameters.json), which applies a [Well-Architected Framework (WAF) aligned](https://learn.microsoft.com/en-us/azure/well-architected/) configuration. This option enables additional Azure best practices for reliability, security, cost optimization, operational excellence, and performance efficiency, such as:

- A **production deployments environment**, which applies a [Well-Architected Framework (WAF) aligned](https://learn.microsoft.com/en-us/azure/well-architected/) configuration. This option enables additional Azure best practices for reliability, security, cost optimization, operational excellence, and performance efficiency, such as:
- Enhanced network security (e.g., Network protection with private endpoints)
- Stricter access controls and managed identities
- Logging, monitoring, and diagnostics enabled by default
- Resource tagging and cost management recommendations

**How to choose your deployment configuration:**

When prompted during `azd up`:
* Use the default `main.parameters.json` file for a **sandbox/dev environment**
* For a **WAF-aligned, production-ready deployment**, copy the contents of `main.waf.parameters.json` into `main.parameters.json` before running `azd up`

---

![useWAFAlignedArchitecture](images/macae_waf_prompt.png)
### VM Credentials Configuration

- Select **`true`** to deploy a **WAF-aligned, production-ready environment**
- Select **`false`** to deploy a **lightweight sandbox/dev environment**
By default, the solution sets the VM administrator username and password from environment variables.
If you do not configure these values, a randomly generated GUID will be used for both the username and password.

To set your own VM credentials before deployment, use:

```sh
azd env set AZURE_ENV_VM_ADMIN_USERNAME <your-username>
azd env set AZURE_ENV_VM_ADMIN_PASSWORD <your-password>
```

> [!TIP]
> Always review and adjust parameter values (such as region, capacity, security settings and log analytics workspace configuration) to match your organization’s requirements before deploying. For production, ensure you have sufficient quota and follow the principle of least privilege for all identities and role assignments.

> To reuse an existing Log Analytics workspace, update the existingWorkspaceResourceId field under the logAnalyticsWorkspaceConfiguration parameter in the .bicep file with the resource ID of your existing workspace.
For example:
```
param logAnalyticsWorkspaceConfiguration = {
dataRetentionInDays: 30
existingWorkspaceResourceId: '/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.OperationalInsights/workspaces/<workspace-name>'
}
```

> [!IMPORTANT]
> The WAF-aligned configuration is under active development. More Azure Well-Architected recommendations will be added in future updates.
Expand Down
Loading
Loading