You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${{ env.accelerator_name }} Test Automation process has completed successfully.</p><p><strong>Run URL:</strong> <a href=\"${RUN_URL}\">${RUN_URL}</a><br></p><p><strong>Test Report:</strong> <a href=\"${REPORT_URL}\">${REPORT_URL}</a></p><p>Best regards,<br>Your Automation Team</p>",
104
+
"subject": "${{ env.accelerator_name }} Test Automation - Success"
105
+
}
106
+
EOF
107
+
)
108
+
else
109
+
EMAIL_BODY=$(cat <<EOF
110
+
{
111
+
"body": "<p>Dear Team,</p><p>We would like to inform you that the ${{ env.accelerator_name }} Test Automation process has encountered an issue and has failed to complete successfully.</p><p><strong>Run URL:</strong> <a href=\"${RUN_URL}\">${RUN_URL}</a><br></p><p><strong>Test Report:</strong> <a href=\"${REPORT_URL}\">${REPORT_URL}</a></p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>",
112
+
"subject": "${{ env.accelerator_name }} Test Automation - Failure"
113
+
}
114
+
EOF
115
+
)
116
+
fi
117
+
118
+
# Send the notification
119
+
curl -X POST "${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA }}" \
120
+
-H "Content-Type: application/json" \
121
+
-d "$EMAIL_BODY" || echo "Failed to send notification"
122
+
123
+
- name: Stop Container App
124
+
if: always()
125
+
uses: azure/cli@v2
126
+
with:
127
+
azcliversion: 'latest'
128
+
inlineScript: |
129
+
az rest -m post -u "/subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ vars.CODEMOD_RG }}/providers/Microsoft.App/containerApps/${{ vars.CODEMOD_FRONTEND_CONTAINER_NAME }}/stop?api-version=2025-01-01"
130
+
az rest -m post -u "/subscriptions/${{ secrets.AZURE_SUBSCRIPTION_ID }}/resourceGroups/${{ vars.CODEMOD_RG }}/providers/Microsoft.App/containerApps/${{ vars.CODEMOD_BACKEND_CONTAINER_NAME }}/stop?api-version=2025-01-01"
Copy file name to clipboardExpand all lines: docs/CustomizingAzdParameters.md
+23-13Lines changed: 23 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,38 @@
2
2
3
3
By default this template will use the environment name as the prefix to prevent naming collisions within Azure. The parameters below show the default values. You only need to run the statements below if you need to change the values.
4
4
5
+
> To override any of the parameters, run `azd env set <PARAMETER_NAME> <VALUE>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-20 characters alphanumeric unique name.
5
6
6
-
> To override any of the parameters, run `azd env set <key> <value>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-20 characters alphanumeric unique name.
7
+
## Parameters
7
8
8
-
Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
|`AZURE_ENV_NAME`| string |`azdtemp`| Used as a prefix for all resource names to ensure uniqueness across environments. |
12
+
|`AZURE_LOCATION`| string |`japaneast`| Location of the Azure resources. Controls where the infrastructure will be deployed. |
13
+
|`AZURE_ENV_MODEL_DEPLOYMENT_TYPE`| string |`GlobalStandard`| Change the Model Deployment Type (allowed values: Standard, GlobalStandard). |
14
+
|`AZURE_ENV_MODEL_NAME`| string |`gpt-4o`| Set the Model Name (allowed values: gpt-4o). |
15
+
|`AZURE_ENV_MODEL_VERSION`| string |`2024-08-06`| Set the Azure model version (allowed values: 2024-08-06) |
16
+
|`AZURE_ENV_MODEL_CAPACITY`| integer |`200`| Set the Model Capacity (choose a number based on available GPT model capacity in your subscription). |
17
+
|`AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID`| string |`<Existing Workspace Id>`| Set this if you want to reuse an existing Log Analytics Workspace instead of creating a new one. |
18
+
|`AZURE_ENV_IMAGETAG`| string |`latest`| Set the Image tag Like (allowed values: latest, dev, hotfix) |
9
19
10
-
```shell
11
-
azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE Standard
12
-
```
13
-
14
-
Set the Model Name (allowed values: gpt-4)
20
+
---
15
21
16
-
```shell
17
-
azd env set AZURE_ENV_MODEL_NAME gpt-4
18
-
```
22
+
## How to Set a Parameter
19
23
20
-
Change the Model Capacity (choose a number based on available GPT model capacity in your subscription)
24
+
To customize any of the above values, run the following command **before**`azd up`:
21
25
22
-
```shell
23
-
azd env setAZURE_ENV_MODEL_CAPACITY 30
26
+
```bash
27
+
azd env set<PARAMETER_NAME><VALUE>
24
28
```
25
29
26
30
Set the Log Analytics Workspace Id if you need to reuse the existing workspace which is already existing
27
31
```shell
28
32
azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.OperationalInsights/workspaces/<workspace-name>'
Copy file name to clipboardExpand all lines: docs/EXAMPLE-CustomizingAzdParameters.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
By default this template will use the environment name as the prefix to prevent naming collisions within Azure. The parameters below show the default values. You only need to run the statements below if you need to change the values.
4
4
5
5
6
-
> To override any of the parameters, run `azd env set <key> <value>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-20 charaters alphanumeric unique name.
6
+
> To override any of the parameters, run `azd env set <key> <value>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-20 characters alphanumeric unique name.
7
7
8
8
Change the Content Understanding Location (allowed values: Sweden Central, Australia East)
9
9
@@ -17,10 +17,10 @@ Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
17
17
azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE GlobalStandard
18
18
```
19
19
20
-
Set the Model Name (allowed values: gpt-4o-mini, gpt-4o, gpt-4)
20
+
Set the Model Name (allowed values: gpt-4o)
21
21
22
22
```shell
23
-
azd env set AZURE_ENV_MODEL_NAME gpt-4o-mini
23
+
azd env set AZURE_ENV_MODEL_NAME gpt-4o
24
24
```
25
25
26
26
Change the Model Capacity (choose a number based on available GPT model capacity in your subscription)
0 commit comments