Skip to content

Commit 336f88b

Browse files
authored
rollback due to aoai-connection fail. (#133)
1 parent 9bf7170 commit 336f88b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

infra/core/ai/cognitiveservices.bicep

Lines changed: 5 additions & 2 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 = true
8+
param disableLocalAuth bool = false
99
param deployments array = []
1010
param appInsightsId string
1111
param appInsightConnectionString string
@@ -51,13 +51,16 @@ resource aiServiceConnection 'Microsoft.CognitiveServices/accounts/connections@2
5151
parent: account
5252
properties: {
5353
category: 'AzureOpenAI'
54-
authType: 'AAD'
54+
authType: 'ApiKey'
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+
}
6164
}
6265
}
6366

0 commit comments

Comments
 (0)