From 6310dfb7808e1371cffa041f5a9b820e5b578afe Mon Sep 17 00:00:00 2001 From: Yohan Lasorsa Date: Fri, 23 Aug 2024 14:21:06 +0200 Subject: [PATCH] chore: disable local auth for azure openai (#199) --- infra/core/ai/cognitiveservices.bicep | 2 ++ infra/main.bicep | 1 + 2 files changed, 3 insertions(+) diff --git a/infra/core/ai/cognitiveservices.bicep b/infra/core/ai/cognitiveservices.bicep index 1bf5666b..8778d363 100644 --- a/infra/core/ai/cognitiveservices.bicep +++ b/infra/core/ai/cognitiveservices.bicep @@ -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) ? { @@ -30,6 +31,7 @@ resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = { customSubDomainName: customSubDomainName publicNetworkAccess: publicNetworkAccess networkAcls: networkAcls + disableLocalAuth: disableLocalAuth } sku: sku } diff --git a/infra/main.bicep b/infra/main.bicep index 0eb101f3..26a4b33f 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -316,6 +316,7 @@ module openAi 'core/ai/cognitiveservices.bicep' = { sku: { name: openAiSkuName } + disableLocalAuth: true deployments: [ { name: chatGptDeploymentName