Skip to content

Commit fa0bca7

Browse files
Update defaultAction for networkAcls for aifcu based on enablePrivateNetworking parameter
1 parent be91f87 commit fa0bca7

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ module avmAiServices_cu 'br/public:avm/res/cognitive-services/account:0.13.2' =
827827
enableTelemetry: enableTelemetry
828828
networkAcls: {
829829
bypass: 'AzureServices'
830-
defaultAction: 'Allow' // Always allow for AI Services
830+
defaultAction: (enablePrivateNetworking) ? 'Deny' : 'Allow'
831831
}
832832
roleAssignments: [
833833
{

infra/main.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.40.2.10011",
9-
"templateHash": "4821257159531769907"
9+
"templateHash": "16588330151933076270"
1010
},
1111
"name": "Content Processing Solution Accelerator",
1212
"description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance."
@@ -40925,9 +40925,9 @@
4092540925
"dependsOn": [
4092640926
"avmContainerApp",
4092740927
"avmManagedIdentity",
40928-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
4092940928
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
4093040929
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
40930+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
4093140931
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
4093240932
"logAnalyticsWorkspace",
4093340933
"virtualNetwork"
@@ -40981,7 +40981,7 @@
4098140981
"networkAcls": {
4098240982
"value": {
4098340983
"bypass": "AzureServices",
40984-
"defaultAction": "Allow"
40984+
"defaultAction": "[if(parameters('enablePrivateNetworking'), 'Deny', 'Allow')]"
4098540985
}
4098640986
},
4098740987
"roleAssignments": {

0 commit comments

Comments
 (0)