Skip to content

Commit 4e8103d

Browse files
author
Mike Swantek
committed
update to network acl
1 parent 3ca9a3a commit 4e8103d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

infra/modules/avm/cognitive-services/main.bicep

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,7 @@ resource cognitiveService 'Microsoft.CognitiveServices/accounts@2025-04-01-previ
331331
virtualNetworkRules: networkAcls.?virtualNetworkRules ?? []
332332
ipRules: networkAcls.?ipRules ?? []
333333
}
334-
// : null
335-
: {
336-
defaultAction: 'Deny' // Set to 'Deny' when networkAcls is null or empty
337-
virtualNetworkRules: []
338-
ipRules: []
339-
}
334+
: null
340335
publicNetworkAccess: publicNetworkAccess != null
341336
? publicNetworkAccess
342337
: (!empty(networkAcls) ? 'Enabled' : 'Disabled')
@@ -364,7 +359,7 @@ resource cognitiveService 'Microsoft.CognitiveServices/accounts@2025-04-01-previ
364359
userOwnedStorage: userOwnedStorage
365360
dynamicThrottlingEnabled: dynamicThrottlingEnabled
366361
}
367-
}
362+
}
368363

369364

370365
@batchSize(1)

0 commit comments

Comments
 (0)