File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ metadata description = 'Creates an Azure Cognitive Services instance.'
1
2
param name string
2
3
param location string = resourceGroup ().location
3
4
param tags object = {}
4
-
5
+ @ description ( 'The custom subdomain name used to access the API. Defaults to the value of the name parameter.' )
5
6
param customSubDomainName string = name
6
7
param deployments array = []
7
8
param kind string = 'OpenAI'
9
+
10
+ @allowed ([ 'Enabled' , 'Disabled' ])
8
11
param publicNetworkAccess string = 'Enabled'
9
12
param sku object = {
10
13
name : 'S0'
11
14
}
12
15
16
+ param allowedIpRules array = []
17
+ param networkAcls object = empty (allowedIpRules ) ? {
18
+ defaultAction : 'Allow'
19
+ } : {
20
+ ipRules : allowedIpRules
21
+ defaultAction : 'Deny'
22
+ }
23
+ param disableLocalAuth bool = false
24
+
13
25
resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
14
26
name : name
15
27
location : location
@@ -18,6 +30,8 @@ resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
18
30
properties : {
19
31
customSubDomainName : customSubDomainName
20
32
publicNetworkAccess : publicNetworkAccess
33
+ networkAcls : networkAcls
34
+ disableLocalAuth : disableLocalAuth
21
35
}
22
36
sku : sku
23
37
}
Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ module openAi 'core/ai/cognitiveservices.bicep' = if (empty(openAiUrl)) {
252
252
sku : {
253
253
name : openAiSkuName
254
254
}
255
+ disableLocalAuth : true
255
256
deployments : [
256
257
{
257
258
name : chatGptDeploymentName
You can’t perform that action at this time.
0 commit comments