Skip to content

Commit 289fbcc

Browse files
Update tags to avoid SFI W18 fix violation
1 parent 2607649 commit 289fbcc

3 files changed

Lines changed: 19 additions & 11 deletions

File tree

infra/main.bicep

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,10 @@ module containerAppsEnvironment 'br/public:avm/res/app/managed-environment:0.11.
11261126
tags: {
11271127
...resourceGroup().tags
11281128
...tags
1129+
TemplateName: 'Content Processing'
1130+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
1131+
CreatedBy: createdBy
1132+
DeploymentName: deployment().name
11291133
}
11301134
managedIdentities: { systemAssigned: true }
11311135
appLogsConfiguration: enableMonitoring

infra/main.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"metadata": {
66
"_generator": {
77
"name": "bicep",
8-
"version": "0.39.26.7824",
9-
"templateHash": "10416093194621236912"
8+
"version": "0.43.8.12551",
9+
"templateHash": "11275932789751936226"
1010
}
1111
},
1212
"parameters": {
@@ -4715,8 +4715,8 @@
47154715
"metadata": {
47164716
"_generator": {
47174717
"name": "bicep",
4718-
"version": "0.39.26.7824",
4719-
"templateHash": "9098270296053650342"
4718+
"version": "0.43.8.12551",
4719+
"templateHash": "4604761290796021104"
47204720
}
47214721
},
47224722
"definitions": {
@@ -30103,8 +30103,8 @@
3010330103
"metadata": {
3010430104
"_generator": {
3010530105
"name": "bicep",
30106-
"version": "0.39.26.7824",
30107-
"templateHash": "7473169155225322335"
30106+
"version": "0.43.8.12551",
30107+
"templateHash": "13516349791985095953"
3010830108
}
3010930109
},
3011030110
"definitions": {
@@ -30411,7 +30411,7 @@
3041130411
},
3041230412
"type": "Microsoft.Authorization/roleAssignments",
3041330413
"apiVersion": "2022-04-01",
30414-
"scope": "[format('Microsoft.CognitiveServices/accounts/{0}', parameters('name'))]",
30414+
"scope": "[resourceId('Microsoft.CognitiveServices/accounts', parameters('name'))]",
3041530415
"name": "[coalesce(tryGet(coalesce(variables('formattedRoleAssignments'), createArray())[copyIndex()], 'name'), guid(resourceId('Microsoft.CognitiveServices/accounts', parameters('name')), coalesce(variables('formattedRoleAssignments'), createArray())[copyIndex()].principalId, coalesce(variables('formattedRoleAssignments'), createArray())[copyIndex()].roleDefinitionId))]",
3041630416
"properties": {
3041730417
"roleDefinitionId": "[coalesce(variables('formattedRoleAssignments'), createArray())[copyIndex()].roleDefinitionId]",
@@ -33854,8 +33854,8 @@
3385433854
"dependsOn": [
3385533855
"aiFoundryAiServices",
3385633856
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
33857-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
3385833857
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
33858+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
3385933859
"virtualNetwork"
3386033860
]
3386133861
},
@@ -33892,8 +33892,8 @@
3389233892
"metadata": {
3389333893
"_generator": {
3389433894
"name": "bicep",
33895-
"version": "0.39.26.7824",
33896-
"templateHash": "13634050148372048883"
33895+
"version": "0.43.8.12551",
33896+
"templateHash": "17583277036649944863"
3389733897
}
3389833898
},
3389933899
"parameters": {
@@ -38363,7 +38363,7 @@
3836338363
"value": "[parameters('location')]"
3836438364
},
3836538365
"tags": {
38366-
"value": "[shallowMerge(createArray(resourceGroup().tags, parameters('tags')))]"
38366+
"value": "[shallowMerge(createArray(resourceGroup().tags, parameters('tags'), createObject('TemplateName', 'Content Processing', 'Type', if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF'), 'CreatedBy', parameters('createdBy'), 'DeploymentName', deployment().name)))]"
3836738367
},
3836838368
"managedIdentities": {
3836938369
"value": {

infra/main_custom.bicep

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,10 @@ module containerAppsEnvironment 'br/public:avm/res/app/managed-environment:0.11.
10791079
tags: {
10801080
...resourceGroup().tags
10811081
...tags
1082+
TemplateName: 'Content Processing'
1083+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
1084+
CreatedBy: createdBy
1085+
DeploymentName: deployment().name
10821086
}
10831087
managedIdentities: { systemAssigned: true }
10841088
appLogsConfiguration: enableMonitoring

0 commit comments

Comments
 (0)