Skip to content

Commit 5e52ad9

Browse files
Merge pull request #230 from microsoft/psl-SFIW18
chore: Add tags to prevent SFI W18 Policy violation
2 parents 3552f12 + ccca218 commit 5e52ad9

5 files changed

Lines changed: 31 additions & 10 deletions

File tree

infra/main.bicep

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,12 @@ module containerAppsEnvironment 'br/public:avm/res/app/managed-environment:0.11.
11231123
params: {
11241124
name: 'cae-${solutionSuffix}'
11251125
location: location
1126+
tags: {
1127+
...resourceGroup().tags
1128+
...existingTags
1129+
...allTags
1130+
...tags
1131+
}
11261132
managedIdentities: { systemAssigned: true }
11271133
appLogsConfiguration: enableMonitoring
11281134
? {

infra/main.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"metadata": {
66
"_generator": {
77
"name": "bicep",
8-
"version": "0.43.1.21952",
9-
"templateHash": "1278209883407272359"
8+
"version": "0.43.8.12551",
9+
"templateHash": "7630070384569998511"
1010
}
1111
},
1212
"parameters": {
@@ -4715,8 +4715,8 @@
47154715
"metadata": {
47164716
"_generator": {
47174717
"name": "bicep",
4718-
"version": "0.43.1.21952",
4719-
"templateHash": "4488065934246762087"
4718+
"version": "0.43.8.12551",
4719+
"templateHash": "4604761290796021104"
47204720
}
47214721
},
47224722
"definitions": {
@@ -26135,8 +26135,8 @@
2613526135
},
2613626136
"dependsOn": [
2613726137
"appIdentity",
26138-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
2613926138
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
26139+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
2614026140
"virtualNetwork"
2614126141
]
2614226142
},
@@ -30103,8 +30103,8 @@
3010330103
"metadata": {
3010430104
"_generator": {
3010530105
"name": "bicep",
30106-
"version": "0.43.1.21952",
30107-
"templateHash": "17526785557845507677"
30106+
"version": "0.43.8.12551",
30107+
"templateHash": "13516349791985095953"
3010830108
}
3010930109
},
3011030110
"definitions": {
@@ -33853,9 +33853,9 @@
3385333853
},
3385433854
"dependsOn": [
3385533855
"aiFoundryAiServices",
33856+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
3385633857
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
3385733858
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
33858-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
3385933859
"virtualNetwork"
3386033860
]
3386133861
},
@@ -33892,8 +33892,8 @@
3389233892
"metadata": {
3389333893
"_generator": {
3389433894
"name": "bicep",
33895-
"version": "0.43.1.21952",
33896-
"templateHash": "8251376928798842081"
33895+
"version": "0.43.8.12551",
33896+
"templateHash": "17583277036649944863"
3389733897
}
3389833898
},
3389933899
"parameters": {
@@ -38362,6 +38362,9 @@
3836238362
"location": {
3836338363
"value": "[parameters('location')]"
3836438364
},
38365+
"tags": {
38366+
"value": "[shallowMerge(createArray(resourceGroup().tags, variables('existingTags'), variables('allTags'), parameters('tags')))]"
38367+
},
3836538368
"managedIdentities": {
3836638369
"value": {
3836738370
"systemAssigned": true

infra/main.parameters.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
},
4141
"imageTag": {
4242
"value": "${AZURE_ENV_IMAGE_TAG}"
43+
},
44+
"tags": {
45+
"value": "${AZURE_ENV_TAGS}"
4346
}
4447
}
4548
}

infra/main.waf.parameters.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
},
5656
"vmSize": {
5757
"value": "${AZURE_ENV_VM_SIZE}"
58+
},
59+
"tags": {
60+
"value": "${AZURE_ENV_TAGS}"
5861
}
5962
}
6063
}

infra/main_custom.bicep

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,12 @@ module containerAppsEnvironment 'br/public:avm/res/app/managed-environment:0.11.
10761076
params: {
10771077
name: 'cae-${solutionSuffix}'
10781078
location: location
1079+
tags: {
1080+
...resourceGroup().tags
1081+
...existingTags
1082+
...allTags
1083+
...tags
1084+
}
10791085
managedIdentities: { systemAssigned: true }
10801086
appLogsConfiguration: enableMonitoring
10811087
? {

0 commit comments

Comments
 (0)