Skip to content

Commit 9844255

Browse files
Merge branch 'main' into dev
2 parents a7426da + b3e1084 commit 9844255

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: validate template property for telemetry
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- 'azure.yaml'
9+
10+
jobs:
11+
validate-template-property:
12+
name: validate-template-property
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Check for required metadata template line
20+
run: |
21+
if grep -E '^\s*#\s*template:\s*multi-agent-custom-automation-engine-solution-accelerator@1\.0' azure.yaml; then
22+
echo "ERROR: 'template' line is commented out in azure.yaml! Please uncomment template line."
23+
exit 1
24+
fi
25+
26+
if ! grep -E '^\s*template:\s*multi-agent-custom-automation-engine-solution-accelerator@1\.0' azure.yaml; then
27+
echo "ERROR: Required 'template' line is missing in azure.yaml! Please add template line for telemetry."
28+
exit 1
29+
fi
30+
echo "template line is present and not commented."

infra/main.bicep

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,16 @@ param webSiteConfiguration webSiteConfigurationType = {
232232
environmentResourceId: null //Default value set on module configuration
233233
}
234234

235+
// ========== Resource Group Tag ========== //
236+
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
237+
name: 'default'
238+
properties: {
239+
tags: {
240+
...tags
241+
TemplateName: 'Macae'
242+
}
243+
}
244+
}
235245

236246
// ========== Log Analytics Workspace ========== //
237247
// WAF best practices for Log Analytics: https://learn.microsoft.com/en-us/azure/well-architected/service-guides/azure-log-analytics

0 commit comments

Comments
 (0)