Skip to content

Commit d8d5565

Browse files
Merge pull request #903 from microsoft/dev
chore: dev to main merge
2 parents 96a53e6 + 0e01cc3 commit d8d5565

32 files changed

Lines changed: 632 additions & 3880 deletions

.github/workflows/deploy-KMGeneric.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
az deployment group create \
131131
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
132132
--template-file infra/main.bicep \
133-
--parameters solutionName=${{env.SOLUTION_PREFIX}} location="${{ env.AZURE_LOCATION }}" contentUnderstandingLocation="swedencentral" secondaryLocation="${{ env.AZURE_LOCATION }}" gptDeploymentCapacity=150 aiServiceLocation="${{ env.AZURE_LOCATION }}" createdBy="Pipeline" tags="{'Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
133+
--parameters solutionName=${{env.SOLUTION_PREFIX}} location="${{ env.AZURE_LOCATION }}" secondaryLocation="${{ env.AZURE_LOCATION }}" gptDeploymentCapacity=150 aiServiceLocation="${{ env.AZURE_LOCATION }}" createdBy="Pipeline" tags="{'Purpose':'Deploying and Cleaning Up Resources for Validation','CreatedDate':'$current_date'}"
134134
135135
136136

.github/workflows/deploy-v2.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ on:
3939
- 'australiaeast'
4040
- 'eastus'
4141
- 'eastus2'
42-
- 'francecentral'
4342
- 'japaneast'
4443
- 'swedencentral'
4544
- 'uksouth'

.github/workflows/validate-bicep-params.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,16 @@ jobs:
3434
- name: Validate infra/ parameters
3535
id: validate_infra
3636
continue-on-error: true
37+
env:
38+
ACCELERATOR_NAME: ${{ env.accelerator_name }}
3739
run: |
3840
set +e
39-
python infra/scripts/validate_bicep_params.py --dir infra --strict --no-color --json-output infra_results.json 2>&1 | tee infra_output.txt
41+
RUN_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
42+
python infra/scripts/validate_bicep_params.py --dir infra --strict --no-color \
43+
--json-output infra_results.json \
44+
--html-output email_body.html \
45+
--accelerator-name "${ACCELERATOR_NAME}" \
46+
--run-url "${RUN_URL}" 2>&1 | tee infra_output.txt
4047
EXIT_CODE=${PIPESTATUS[0]}
4148
set -e
4249
echo "## Infra Param Validation" >> "$GITHUB_STEP_SUMMARY"
@@ -61,24 +68,25 @@ jobs:
6168
name: bicep-validation-results
6269
path: |
6370
infra_results.json
71+
email_body.html
6472
retention-days: 30
6573

6674
- name: Send schedule notification on failure
6775
if: github.event_name == 'schedule' && steps.result.outputs.status == 'failure'
6876
env:
6977
LOGICAPP_URL: ${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA }}
70-
GITHUB_REPOSITORY: ${{ github.repository }}
71-
GITHUB_RUN_ID: ${{ github.run_id }}
7278
ACCELERATOR_NAME: ${{ env.accelerator_name }}
7379
run: |
74-
RUN_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
75-
INFRA_OUTPUT=$(sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' infra_output.txt)
80+
if [ -f email_body.html ]; then
81+
EMAIL_BODY=$(cat email_body.html)
82+
else
83+
EMAIL_BODY="<p>Bicep parameter validation failed but no detailed report was generated.</p>"
84+
fi
7685
7786
jq -n \
7887
--arg name "${ACCELERATOR_NAME}" \
79-
--arg infra "$INFRA_OUTPUT" \
80-
--arg url "$RUN_URL" \
81-
'{subject: ("Bicep Parameter Validation Report - " + $name + " - Issues Detected"), body: ("<p>Dear Team,</p><p>The scheduled <strong>Bicep Parameter Validation</strong> for <strong>" + $name + "</strong> has detected parameter mapping errors.</p><p><strong>infra/ Results:</strong></p><pre>" + $infra + "</pre><p><strong>Run URL:</strong> <a href=\"" + $url + "\">" + $url + "</a></p><p>Please fix the parameter mapping issues at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>")}' \
88+
--arg body "$EMAIL_BODY" \
89+
'{subject: ("Bicep Parameter Validation Report - " + $name + " - Issues Detected"), body: $body}' \
8290
| curl -X POST "${LOGICAPP_URL}" \
8391
-H "Content-Type: application/json" \
8492
-d @- || echo "Failed to send notification"
@@ -87,18 +95,18 @@ jobs:
8795
if: github.event_name == 'schedule' && steps.result.outputs.status == 'success'
8896
env:
8997
LOGICAPP_URL: ${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA }}
90-
GITHUB_REPOSITORY: ${{ github.repository }}
91-
GITHUB_RUN_ID: ${{ github.run_id }}
9298
ACCELERATOR_NAME: ${{ env.accelerator_name }}
9399
run: |
94-
RUN_URL="https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
95-
INFRA_OUTPUT=$(sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' infra_output.txt)
100+
if [ -f email_body.html ]; then
101+
EMAIL_BODY=$(cat email_body.html)
102+
else
103+
EMAIL_BODY="<p>Bicep parameter validation passed. No detailed report was generated.</p>"
104+
fi
96105
97106
jq -n \
98107
--arg name "${ACCELERATOR_NAME}" \
99-
--arg infra "$INFRA_OUTPUT" \
100-
--arg url "$RUN_URL" \
101-
'{subject: ("Bicep Parameter Validation Report - " + $name + " - Passed"), body: ("<p>Dear Team,</p><p>The scheduled <strong>Bicep Parameter Validation</strong> for <strong>" + $name + "</strong> has completed successfully. All parameter mappings are valid.</p><p><strong>infra/ Results:</strong></p><pre>" + $infra + "</pre><p><strong>Run URL:</strong> <a href=\"" + $url + "\">" + $url + "</a></p><p>Best regards,<br>Your Automation Team</p>")}' \
108+
--arg body "$EMAIL_BODY" \
109+
'{subject: ("Bicep Parameter Validation Report - " + $name + " - Passed"), body: $body}' \
102110
| curl -X POST "${LOGICAPP_URL}" \
103111
-H "Content-Type: application/json" \
104112
-d @- || echo "Failed to send notification"

documents/AVMPostDeploymentGuide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ bash ./infra/scripts/process_custom_data.sh \
212212
<Storage-Account-Name> <Storage-Container-Name> \
213213
<SQL-Server-Name> <SQL-Database-Name> <Backend-User-MID-Client-ID> <Backend-User-MID-Display-Name> \
214214
<AI-Search-Name> <Search-Endpoint> \
215-
<AI-Foundry-Resource-ID> <CU-Foundry-Resource-ID> \
215+
<AI-Foundry-Resource-ID> \
216216
<OpenAI-Endpoint> <Embedding-Model> <Deployment-Model> \
217217
<CU-Endpoint> <CU-API-Version> <AI-Agent-Endpoint> <Solution-Name>
218218
```

documents/CustomizeData.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you would like to update the solution to leverage your own data please follow
2929
<Storage-Account-Name> <Storage-Container-Name> \
3030
<SQL-Server-Name> <SQL-Database-Name> <Backend-User-MID-Client-ID> <Backend-User-MID-Display-Name> \
3131
<AI-Search-Name> <Search-Endpoint> \
32-
<AI-Foundry-Resource-ID> <CU-Foundry-Resource-ID> \
32+
<AI-Foundry-Resource-ID> \
3333
<OpenAI-Endpoint> <Embedding-Model> <Deployment-Model> \
3434
<CU-Endpoint> <CU-API-Version> <AI-Agent-Endpoint> <Solution-Name>
3535
```

documents/CustomizingAzdParameters.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ By default this template will use the environment name as the prefix to prevent
1111
| ----------------------------------------- | ------- | ------------------------ | -------------------------------------------------------------------------- |
1212
| `AZURE_LOCATION` | string | ` ` | Sets the Azure region for resource deployment. |
1313
| `AZURE_ENV_NAME` | string | `env_name` | Sets the environment name prefix for all Azure resources. |
14-
| `AZURE_ENV_CU_LOCATION` | string | `swedencentral` | Specifies the region for content understanding resources. |
1514
| `AZURE_ENV_AI_SERVICE_LOCATION` | string | `eastus2` | Specifies the Azure AI service location. |
1615
| `AZURE_ENV_SECONDARY_LOCATION` | string | `eastus2` | Specifies a secondary Azure region. |
17-
| `AZURE_ENV_MODEL_DEPLOYMENT_TYPE` | string | `GlobalStandard` | Defines the model deployment type (allowed: `Standard`, `GlobalStandard`). |
18-
| `AZURE_ENV_GPT_MODEL_NAME` | string | `gpt-4o-mini` | Specifies the GPT model name (e.g., `gpt-4`, `gpt-4o-mini`). |
19-
| `AZURE_ENV_GPT_MODEL_VERSION` | string | `2024-07-18` | Sets the Azure model version (allowed: `2024-08-06`, etc.). |
16+
| `AZURE_ENV_MODEL_DEPLOYMENT_TYPE` | string | `GlobalStandard` | Defines the model deployment type (allowed: `Standard`, `GlobalStandard`). **Note:** The `azd` location-picker filters regions using the `usageName` metadata on `aiServiceLocation` in `infra/main.bicep` (currently `OpenAI.GlobalStandard.gpt-4o-mini,150`). If you set this to `Standard`, also edit that metadata to `OpenAI.Standard.gpt-4o-mini,150` so the picker shows the correct subset of regions, since `gpt-4o-mini` Standard (regional) availability differs from Global Standard. |
17+
| `AZURE_ENV_GPT_MODEL_NAME` | string | `gpt-4o-mini` | Specifies the GPT model name (e.g., `gpt-4o-mini`, `gpt-4.1`, etc.). |
18+
| `AZURE_ENV_GPT_MODEL_VERSION` | string | `2024-07-18` | Sets the Azure model version (e.g., `2024-07-18`, etc.). |
2019
| `AZURE_ENV_GPT_MODEL_CAPACITY` | integer | `30` | Sets the GPT model capacity. |
2120
| `AZURE_ENV_EMBEDDING_MODEL_NAME` | string | `text-embedding-3-small` | Sets the name of the embedding model to use. |
2221
| `AZURE_ENV_IMAGE_TAG` | string | `latest_afv2` | Sets the image tag (`latest_afv2`, `dev`, `hotfix`, etc.). |

documents/DeploymentGuide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ bash ./infra/scripts/process_sample_data.sh \
395395
<Storage-Account-Name> <Storage-Container-Name> \
396396
<SQL-Server-Name> <SQL-Database-Name> <Backend-User-MID-Client-ID> <Backend-User-MID-Display-Name> \
397397
<AI-Search-Name> <Search-Endpoint> \
398-
<AI-Foundry-Resource-ID> <CU-Foundry-Resource-ID> \
398+
<AI-Foundry-Resource-ID> \
399399
<OpenAI-Endpoint> <Embedding-Model> <Deployment-Model> \
400400
<CU-Endpoint> <CU-API-Version> <AI-Agent-Endpoint> <Use-Case> <Solution-Name>
401401
```
@@ -405,9 +405,9 @@ bash ./infra/scripts/process_sample_data.sh \
405405
- **Storage Parameters:** Storage account name and container name
406406
- **SQL Parameters:** SQL server name, database name, backend user managed identity client ID and display name
407407
- **Search Parameters:** AI Search service name and endpoint
408-
- **AI Foundry Parameters:** AI Foundry resource ID and Content Understanding Foundry resource ID
408+
- **AI Foundry Parameters:** AI Foundry resource ID
409409
- **OpenAI Parameters:** OpenAI endpoint, embedding model name, and deployment model name
410-
- **Content Understanding Parameters:** CU endpoint, AI agent endpoint, CU API version
410+
- **Content Understanding Parameters:** CU endpoint, CU API version, AI agent endpoint
411411
- **Use Case:** Either `telecom` or `IT_helpdesk`
412412
- **Solution Parameters:** Solution deployment name
413413

documents/Images/AddDetails.png

-292 KB
Loading

documents/Images/AddPlatform.png

-110 KB
Loading

documents/Images/Web.png

-135 KB
Loading

0 commit comments

Comments
 (0)