Skip to content

Commit 73e9092

Browse files
Merge branch 'dev' into CI-Pipeline-codmod
2 parents ef78be1 + 4955540 commit 73e9092

File tree

6 files changed

+279
-72
lines changed

6 files changed

+279
-72
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ jobs:
141141
imageVersion="${IMAGE_TAG}" \
142142
createdBy="Pipeline" \
143143
tags="{'SecurityControl':'Ignore','Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
144+
144145
- name: Assign Contributor role to Service Principal
145146
if: always()
146147
run: |

docs/DeploymentGuide.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,18 @@ Check the [Azure Products by Region](https://azure.microsoft.com/en-us/explore/g
3333

3434
### Sandbox or WAF Aligned Deployment Options
3535

36-
The [`infra`](../infra) folder contains the [`main.bicep`](../infra/main.bicep) Bicep script, which defines all Azure infrastructure components for this solution.
36+
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.
3737

38-
When running `azd up`, you’ll now be prompted to choose between a **WAF-aligned configuration** and a **sandbox configuration** using a simple selection:
38+
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.
3939

40-
- A **sandbox environment** — ideal for development and proof-of-concept scenarios, with minimal security and cost controls for rapid iteration.
41-
42-
- 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:
43-
- Enhanced network security (e.g., Network protection with private endpoints)
44-
- Stricter access controls and managed identities
45-
- Logging, monitoring, and diagnostics enabled by default
46-
- Resource tagging and cost management recommendations
40+
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:
4741

4842
**How to choose your deployment configuration:**
4943

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

52-
![useWAFAlignedArchitecture](images/macae_waf_prompt.png)
5347

54-
- Select **`true`** to deploy a **WAF-aligned, production-ready environment**
55-
- Select **`false`** to deploy a **lightweight sandbox/dev environment**
56-
5748
> [!TIP]
5849
> 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.
5950

infra/main.bicep

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ metadata name = 'Modernize Your Code Solution Accelerator'
22
metadata description = '''CSA CTO Gold Standard Solution Accelerator for Modernize Your Code.
33
'''
44

5-
@description('Set to true if you want to deploy WAF-aligned infrastructure.')
6-
param useWafAlignedArchitecture bool
75

86
@minLength(3)
97
@maxLength(16)
@@ -47,10 +45,10 @@ param aiDeploymentsLocation string
4745
param capacity int = 150
4846

4947
@description('Optional. Enable monitoring for the resources. This will enable Application Insights and Log Analytics. Defaults to false.')
50-
param enableMonitoring bool = useWafAlignedArchitecture? true : false
48+
param enableMonitoring bool = false
5149

5250
@description('Optional. Enable scaling for the container apps. Defaults to false.')
53-
param enableScaling bool = useWafAlignedArchitecture? true : false
51+
param enableScaling bool = false
5452

5553
@description('Optional. Enable redundancy for applicable resources. Defaults to false.')
5654
param enableRedundancy bool = false
@@ -59,7 +57,7 @@ param enableRedundancy bool = false
5957
param secondaryLocation string?
6058

6159
@description('Optional. Enable private networking for the resources. Set to true to enable private networking. Defaults to false.')
62-
param enablePrivateNetworking bool = useWafAlignedArchitecture? true : false
60+
param enablePrivateNetworking bool = false
6361

6462
@description('Optional. Size of the Jumpbox Virtual Machine when created. Set to custom value if enablePrivateNetworking is true.')
6563
param vmSize string?
@@ -90,7 +88,7 @@ param llmModel string = 'gpt-4o'
9088

9189
@minLength(1)
9290
@description('Set the Image tag:')
93-
param imageVersion string = 'latest'
91+
param imageVersion string = 'latest_2025-09-22_455'
9492

9593
@minLength(1)
9694
@description('Version of the GPT model to deploy:')
@@ -134,8 +132,9 @@ var modelDeployment = {
134132

135133
var abbrs = loadJsonContent('./abbreviations.json')
136134

137-
@description('Optional created by user name')
138-
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
135+
@description('Tag, Created by user name')
136+
param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId
137+
139138

140139
// ========== Resource Group Tag ========== //
141140
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {

0 commit comments

Comments
 (0)