Skip to content

Commit

Permalink
chore: disable local auth for azure openai (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied authored Aug 23, 2024
1 parent 3996430 commit 6310dfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infra/core/ai/cognitiveservices.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ param publicNetworkAccess string = 'Enabled'
param sku object = {
name: 'S0'
}
param disableLocalAuth bool = false

param allowedIpRules array = []
param networkAcls object = empty(allowedIpRules) ? {
Expand All @@ -30,6 +31,7 @@ resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
customSubDomainName: customSubDomainName
publicNetworkAccess: publicNetworkAccess
networkAcls: networkAcls
disableLocalAuth: disableLocalAuth
}
sku: sku
}
Expand Down
1 change: 1 addition & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ module openAi 'core/ai/cognitiveservices.bicep' = {
sku: {
name: openAiSkuName
}
disableLocalAuth: true
deployments: [
{
name: chatGptDeploymentName
Expand Down

0 comments on commit 6310dfb

Please sign in to comment.