Skip to content

Commit

Permalink
Update cognitiveservices.bicep with networkAcls
Browse files Browse the repository at this point in the history
  • Loading branch information
pamelafox authored Nov 28, 2023
1 parent f00f37d commit ccf7d64
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/common/infra/bicep/core/ai/cognitiveservices.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ param tags object = {}
param customSubDomainName string = name
param deployments array = []
param kind string = 'OpenAI'

@allowed([ 'Enabled', 'Disabled' ])
param publicNetworkAccess string = 'Enabled'
param sku object = {
name: 'S0'
}

param allowedIpRules array = []
param networkAcls object = empty(allowedIpRules) ? {
defaultAction: 'Allow'
} : {
ipRules: allowedIpRules
defaultAction: 'Deny'
}

resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
name: name
location: location
Expand All @@ -19,6 +29,7 @@ resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
properties: {
customSubDomainName: customSubDomainName
publicNetworkAccess: publicNetworkAccess
networkAcls: networkAcls
}
sku: sku
}
Expand Down

0 comments on commit ccf7d64

Please sign in to comment.