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>",
105
+
"subject": "${{ env.accelerator_name }} Test Automation - Success"
106
+
}
107
+
EOF
108
+
)
109
+
else
110
+
EMAIL_BODY=$(cat <<EOF
111
+
{
112
+
"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> ${OUTPUT}</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>",
113
+
"subject": "${{ env.accelerator_name }} Test Automation - Failure"
114
+
}
115
+
EOF
116
+
)
117
+
fi
118
+
119
+
# Send the notification
120
+
curl -X POST "${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA }}" \
121
+
-H "Content-Type: application/json" \
122
+
-d "$EMAIL_BODY" || echo "Failed to send notification"
123
+
124
+
- name: Stop Container App
125
+
if: always()
126
+
uses: azure/cli@v2
127
+
with:
128
+
azcliversion: 'latest'
129
+
inlineScript: |
130
+
az rest -m post -u "/subscriptions/${{ secrets.AZURE_MAINTENANCE_SUBSCRIPTION_ID }}/resourceGroups/${{ vars.CP_RG }}/providers/Microsoft.App/containerApps/${{ vars.CP_CONTAINERAPP_PREFIX }}-app/stop?api-version=2025-01-01"
131
+
az rest -m post -u "/subscriptions/${{ secrets.AZURE_MAINTENANCE_SUBSCRIPTION_ID }}/resourceGroups/${{ vars.CP_RG }}/providers/Microsoft.App/containerApps/${{ vars.CP_CONTAINERAPP_PREFIX }}-api/stop?api-version=2025-01-01"
132
+
az rest -m post -u "/subscriptions/${{ secrets.AZURE_MAINTENANCE_SUBSCRIPTION_ID }}/resourceGroups/${{ vars.CP_RG }}/providers/Microsoft.App/containerApps/${{ vars.CP_CONTAINERAPP_PREFIX }}-web/stop?api-version=2025-01-01"
Copy file name to clipboardExpand all lines: docs/CustomizingAzdParameters.md
+21-27Lines changed: 21 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,40 +3,34 @@
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 <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.
|`AZURE_ENV_NAME`| string |`cps`| Sets the environment name prefix for all Azure resources. |
13
+
|`AZURE_ENV_SECONDARY_LOCATION`| string |`eastus2`| Specifies a secondary Azure region. |
14
+
|`AZURE_ENV_CU_LOCATION`| string |`WestUS`| Sets the location for the Azure Content Understanding service. |
15
+
|`AZURE_ENV_MODEL_DEPLOYMENT_TYPE`| string |`GlobalStandard`| Defines the model deployment type (allowed values: `Standard`, `GlobalStandard`). |
16
+
| `AZURE_ENV_MODEL_NAME` | string | `gpt-4o` | Specifies the GPT model name (allowed values: `gpt-4o`).
17
+
|`AZURE_ENV_MODEL_VERSION`| string |`2024-08-06`| Specifies the GPT model version (allowed values: `2024-08-06`). |
18
+
|`AZURE_ENV_MODEL_CAPACITY`| integer |`30`| Sets the model capacity (choose based on your subscription's available GPT capacity). |
19
+
|`USE_LOCAL_BUILD`| boolean |`false`| Indicates whether to use a local container build for deployment. |
20
+
|`AZURE_ENV_IMAGETAG`| boolean |`latest`| Set the Image tag Like (allowed values: latest, dev, hotfix) |
21
+
|`AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID`| string |`<Existing Workspace Id>`| Reuses an existing Log Analytics Workspace instead of provisioning a new one. |
13
22
14
-
Change the Azure Content Understanding Service Location (example: eastus2, westus2, etc.)
15
-
```shell
16
-
azd env set AZURE_ENV_CU_LOCATION 'West US'
17
-
```
18
23
19
-
Change the Deployment Type (allowed values: Standard, GlobalStandard)
20
-
```shell
21
-
azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE 'GlobalStandard'
22
-
```
24
+
## How to Set a Parameter
23
25
24
-
Set the Model Name (allowed values: gpt-4o)
25
-
```shell
26
-
azd env set AZURE_ENV_MODEL_NAME 'gpt-4o'
27
-
```
26
+
To customize any of the above values, run the following command **before**`azd up`:
28
27
29
-
Change the Model Capacity (choose a number based on available GPT model capacity in your subscription)
30
-
```shell
31
-
azd env set AZURE_ENV_MODEL_CAPACITY '30'
28
+
```bash
29
+
azd env set<PARAMETER_NAME><VALUE>
32
30
```
33
31
34
-
Change if the deployment should use a local build of the containers
35
-
```shell
36
-
azd env set USE_LOCAL_BUILD 'false'
37
-
```
32
+
**Example:**
38
33
39
-
Set the Log Analytics Workspace Id if you need to reuse the existing workspace
40
-
```shell
41
-
azd env set AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID '/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.OperationalInsights/workspaces/<existing-workspace-name>'
Copy file name to clipboardExpand all lines: docs/DeploymentGuide.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ This will allow the scripts to run for the current session without permanently c
36
36
37
37
<br/>
38
38
39
+
39
40
## Deployment Options & Steps
40
41
41
42
Pick from the options below to see step-by-step instructions for GitHub Codespaces, VS Code Dev Containers, and Local Environments.
@@ -111,15 +112,19 @@ Consider the following settings during your deployment to modify specific settin
111
112
112
113
When you start the deployment, most parameters will have **default values**, but you can update the following settings by following the steps [here](../docs/CustomizingAzdParameters.md):
0 commit comments