Skip to content

Commit 78ce92e

Browse files
authored
Disable openai key access (#1555)
1 parent 5aa8a14 commit 78ce92e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

infra/core/ai/cognitiveservices.bicep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ param location string = resourceGroup().location
44
param tags object = {}
55
@description('The custom subdomain name used to access the API. Defaults to the value of the name parameter.')
66
param customSubDomainName string = name
7+
param disableLocalAuth bool = false
78
param deployments array = []
89
param kind string = 'OpenAI'
910

@@ -30,6 +31,7 @@ resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
3031
customSubDomainName: customSubDomainName
3132
publicNetworkAccess: publicNetworkAccess
3233
networkAcls: networkAcls
34+
disableLocalAuth: disableLocalAuth
3335
}
3436
sku: sku
3537
}

infra/main.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ module openAi 'core/ai/cognitiveservices.bicep' = if (isAzureOpenAiHost) {
361361
name: openAiSkuName
362362
}
363363
deployments: openAiDeployments
364+
disableLocalAuth: true
364365
}
365366
}
366367

0 commit comments

Comments
 (0)