Skip to content

Commit 8cd3055

Browse files
authored
Update cognitiveservices.bicep for bypass (#1657)
1 parent f11423a commit 8cd3055

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

infra/core/ai/cognitiveservices.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ resource account 'Microsoft.CognitiveServices/accounts@2023-10-01-preview' = {
3434
properties: {
3535
customSubDomainName: customSubDomainName
3636
publicNetworkAccess: publicNetworkAccess
37-
// Document Intelligence (FormRecognizer) does not support bypass in network acls
38-
networkAcls: kind == 'FormRecognizer' ? networkAcls : networkAclsWithBypass
37+
// Some services do not support bypass in network acls
38+
networkAcls: (kind == 'FormRecognizer' || kind == 'ComputerVision') ? networkAcls : networkAclsWithBypass
3939
disableLocalAuth: disableLocalAuth
4040
}
4141
sku: sku
@@ -57,4 +57,4 @@ resource deployment 'Microsoft.CognitiveServices/accounts/deployments@2023-05-01
5757

5858
output endpoint string = account.properties.endpoint
5959
output id string = account.id
60-
output name string = account.name
60+
output name string = account.name

0 commit comments

Comments
 (0)