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>",
153
+
154
+
"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><strong>Tested URL:</strong> ${{ env.url }}</p><p>Best regards,<br>Your Automation Team</p>",
155
+
90
156
"subject": "${{ env.accelerator_name }} Test Automation - Success"
91
157
}
92
158
EOF
93
159
)
94
160
else
95
161
EMAIL_BODY=$(cat <<EOF
96
162
{
97
-
"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>",
163
+
164
+
"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><strong>Tested URL:</strong> ${{ env.url }}</p><p>Please investigate the matter at your earliest convenience.</p><p>Best regards,<br>Your Automation Team</p>",
165
+
98
166
"subject": "${{ env.accelerator_name }} Test Automation - Failure"
99
167
}
100
168
EOF
101
169
)
102
170
fi
171
+
172
+
103
173
# Send the notification
104
-
curl -X POST "${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA}}" \
174
+
curl -X POST "${{ secrets.EMAILNOTIFICATION_LOGICAPP_URL_TA}}" \
105
175
-H "Content-Type: application/json" \
106
-
-d "$EMAIL_BODY" || echo "Failed to send notification"
176
+
-d "$EMAIL_BODY" || echo "Failed to send notification"
|`AZURE_LOCATION`| string |``*(empty)*| Sets the Azure region for resource deployment. |
12
+
|`AZURE_LOCATION`| string |``| Sets the Azure region for resource deployment. |
13
13
|`AZURE_ENV_NAME`| string |`env_name`| Sets the environment name prefix for all Azure resources. |
14
14
|`AZURE_CONTENT_UNDERSTANDING_LOCATION`| string |`swedencentral`| Specifies the region for content understanding resources. |
15
15
|`AZURE_SECONDARY_LOCATION`| string |`eastus2`| Specifies a secondary Azure region. |
@@ -21,7 +21,9 @@ By default this template will use the environment name as the prefix to prevent
21
21
|`AZURE_OPENAI_EMBEDDING_MODEL`| string |`text-embedding-ada-002`| Sets the name of the embedding model to use. |
22
22
|`AZURE_ENV_IMAGETAG`| string |`latest`| Sets the image tag (`latest`, `dev`, `hotfix`, etc.). |
23
23
|`AZURE_OPENAI_EMBEDDING_MODEL_CAPACITY`| integer |`80`| Sets the capacity for the embedding model deployment. |
24
-
|`AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID`| string |``*(empty)*| Reuses an existing Log Analytics Workspace instead of creating a new one. |
24
+
|`AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID`| string |`<Existing Workspace Id>`| Reuses an existing Log Analytics Workspace instead of creating a new one. |
25
+
|`USE_LOCAL_BUILD`| string |`false`| Indicates whether to use a local container build for deployment. |
26
+
|`AZURE_EXISTING_AI_PROJECT_RESOURCE_ID`| string |`<Existing AI Project resource Id>`| Reuses an existing AIFoundry and AIFoundryProject instead of creating a new one. |
0 commit comments