Skip to content

Commit 6d3c442

Browse files
Add tags to prevent SFI W18 Policy violation
1 parent 7333b9c commit 6d3c442

3 files changed

Lines changed: 26 additions & 20 deletions

File tree

infra/main.bicep

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,10 @@ module containerAppEnvironment 'br/public:avm/res/app/managed-environment:0.13.1
11361136
params: {
11371137
name: containerAppEnvironmentResourceName
11381138
location: location
1139-
tags: tags
1139+
tags: {
1140+
...resourceGroup().tags
1141+
...tags
1142+
}
11401143
enableTelemetry: enableTelemetry
11411144
// WAF aligned configuration for Private Networking
11421145
publicNetworkAccess: enablePrivateNetworking ? 'Disabled' : 'Enabled'

infra/main.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"metadata": {
66
"_generator": {
77
"name": "bicep",
8-
"version": "0.42.1.51946",
9-
"templateHash": "8490920419623942773"
8+
"version": "0.39.26.7824",
9+
"templateHash": "6973968965982796675"
1010
},
1111
"name": "Multi-Agent Custom Automation Engine",
1212
"description": "This module contains the resources required to deploy the [Multi-Agent Custom Automation Engine solution accelerator](https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator) for both Sandbox environments and WAF aligned environments.\r\n\r\n> **Note:** This module is not intended for broad, generic use, as it was designed by the Commercial Solution Areas CTO team, as a Microsoft Solution Accelerator. Feature requests and bug fix requests are welcome if they support the needs of this organization but may not be incorporated if they aim to make this module more generic than what it needs to be for its primary use case. This module will likely be updated to leverage AVM resource modules in the future. This may result in breaking changes in upcoming versions when these features are implemented.\r\n"
@@ -4991,8 +4991,8 @@
49914991
"metadata": {
49924992
"_generator": {
49934993
"name": "bicep",
4994-
"version": "0.42.1.51946",
4995-
"templateHash": "4286500745908716598"
4994+
"version": "0.39.26.7824",
4995+
"templateHash": "16466396517695720401"
49964996
}
49974997
},
49984998
"definitions": {
@@ -24308,8 +24308,8 @@
2430824308
"metadata": {
2430924309
"_generator": {
2431024310
"name": "bicep",
24311-
"version": "0.42.1.51946",
24312-
"templateHash": "6570260143045999127"
24311+
"version": "0.39.26.7824",
24312+
"templateHash": "3729960794136576463"
2431324313
}
2431424314
},
2431524315
"definitions": {
@@ -24616,7 +24616,7 @@
2461624616
},
2461724617
"type": "Microsoft.Authorization/roleAssignments",
2461824618
"apiVersion": "2022-04-01",
24619-
"scope": "[resourceId('Microsoft.CognitiveServices/accounts', parameters('name'))]",
24619+
"scope": "[format('Microsoft.CognitiveServices/accounts/{0}', parameters('name'))]",
2462024620
"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))]",
2462124621
"properties": {
2462224622
"roleDefinitionId": "[coalesce(variables('formattedRoleAssignments'), createArray())[copyIndex()].roleDefinitionId]",
@@ -27973,9 +27973,9 @@
2797327973
},
2797427974
"dependsOn": [
2797527975
"aiFoundryAiServices",
27976+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
2797627977
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
2797727978
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
27978-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
2797927979
"virtualNetwork"
2798027980
]
2798127981
},
@@ -28012,8 +28012,8 @@
2801228012
"metadata": {
2801328013
"_generator": {
2801428014
"name": "bicep",
28015-
"version": "0.42.1.51946",
28016-
"templateHash": "14513113443903512301"
28015+
"version": "0.39.26.7824",
28016+
"templateHash": "2511165232243944989"
2801728017
}
2801828018
},
2801928019
"parameters": {
@@ -34109,7 +34109,7 @@
3410934109
"value": "[parameters('location')]"
3411034110
},
3411134111
"tags": {
34112-
"value": "[parameters('tags')]"
34112+
"value": "[shallowMerge(createArray(resourceGroup().tags, parameters('tags')))]"
3411334113
},
3411434114
"enableTelemetry": {
3411534115
"value": "[parameters('enableTelemetry')]"
@@ -42561,8 +42561,8 @@
4256142561
"metadata": {
4256242562
"_generator": {
4256342563
"name": "bicep",
42564-
"version": "0.42.1.51946",
42565-
"templateHash": "15053339789155096730"
42564+
"version": "0.39.26.7824",
42565+
"templateHash": "17255929531929846207"
4256642566
}
4256742567
},
4256842568
"definitions": {
@@ -43518,7 +43518,7 @@
4351843518
},
4351943519
"type": "Microsoft.Insights/diagnosticSettings",
4352043520
"apiVersion": "2021-05-01-preview",
43521-
"scope": "[resourceId('Microsoft.Web/sites', parameters('name'))]",
43521+
"scope": "[format('Microsoft.Web/sites/{0}', parameters('name'))]",
4352243522
"name": "[coalesce(tryGet(coalesce(parameters('diagnosticSettings'), createArray())[copyIndex()], 'name'), format('{0}-diagnosticSettings', parameters('name')))]",
4352343523
"properties": {
4352443524
"copy": [
@@ -43593,8 +43593,8 @@
4359343593
"metadata": {
4359443594
"_generator": {
4359543595
"name": "bicep",
43596-
"version": "0.42.1.51946",
43597-
"templateHash": "16493651611122310009"
43596+
"version": "0.39.26.7824",
43597+
"templateHash": "5308269420307571977"
4359843598
},
4359943599
"name": "Site App Settings",
4360043600
"description": "This module deploys a Site App Setting."
@@ -54840,8 +54840,8 @@
5484054840
"metadata": {
5484154841
"_generator": {
5484254842
"name": "bicep",
54843-
"version": "0.42.1.51946",
54844-
"templateHash": "4859654437121510695"
54843+
"version": "0.39.26.7824",
54844+
"templateHash": "5805872877074593071"
5484554845
}
5484654846
},
5484754847
"parameters": {

infra/main_custom.bicep

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,10 @@ module containerAppEnvironment 'br/public:avm/res/app/managed-environment:0.13.1
11341134
params: {
11351135
name: containerAppEnvironmentResourceName
11361136
location: location
1137-
tags: tags
1137+
tags: {
1138+
...resourceGroup().tags
1139+
...tags
1140+
}
11381141
enableTelemetry: enableTelemetry
11391142
// WAF aligned configuration for Private Networking
11401143
publicNetworkAccess: enablePrivateNetworking ? 'Disabled' : 'Enabled'

0 commit comments

Comments
 (0)