Skip to content

Commit 76a32db

Browse files
committed
fixed more
1 parent 42842d0 commit 76a32db

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

infra/core/ai/cognitiveservices.bicep

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ param location string = resourceGroup().location
55
param tags object = {}
66
@description('The custom subdomain name used to access the API. Defaults to the value of the name parameter.')
77
param customSubDomainName string = aiServiceName
8-
param disableLocalAuth bool = false
8+
param disableLocalAuth bool = true
99
param deployments array = []
1010
param appInsightsId string
1111
param appInsightConnectionString string
@@ -51,16 +51,13 @@ resource aiServiceConnection 'Microsoft.CognitiveServices/accounts/connections@2
5151
parent: account
5252
properties: {
5353
category: 'AzureOpenAI'
54-
authType: 'ApiKey'
54+
authType: 'AAD'
5555
isSharedToAll: true
5656
target: account.properties.endpoints['OpenAI Language Model Instance API']
5757
metadata: {
5858
ApiType: 'azure'
5959
ResourceId: account.id
6060
}
61-
credentials: {
62-
key: account.listKeys().key1
63-
}
6461
}
6562
}
6663

0 commit comments

Comments
 (0)