Skip to content

Commit 1e6eb33

Browse files
committed
added networkAcls
1 parent b9c301c commit 1e6eb33

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

infra/modules/ai-services/main.bicep

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ module openAiPrivateDnsZone '../privateDnsZone.bicep' = if (privateNetworking !=
9090
name: take('${name}-openai-pdns-deployment', 64)
9191
params: {
9292
name: 'privatelink.openai.${toLower(environment().name) == 'azureusgovernment' ? 'azure.us' : 'azure.com'}'
93-
// location: location
9493
virtualNetworkResourceId: privateNetworking.?virtualNetworkResourceId ?? ''
9594
tags: tags
9695
}
@@ -128,7 +127,7 @@ module cognitiveService 'br/public:avm/res/cognitive-services/account:0.11.0' =
128127
publicNetworkAccess: privateNetworking != null ? 'Disabled' : 'Enabled'
129128
// rules to allow firewall and virtual network access
130129
networkAcls: {
131-
defaultAction: 'Deny'
130+
defaultAction: privateNetworking != null ? 'Deny' : 'Allow'
132131
bypass: 'AzureServices'
133132
virtualNetworkRules: privateNetworking != null ? [
134133
{

0 commit comments

Comments
 (0)