From 71e5df1dccbc1615db6bbb930810774330e56a0f Mon Sep 17 00:00:00 2001 From: John Oliver <1615532+johnoliver@users.noreply.github.com> Date: Wed, 11 Oct 2023 12:11:25 +0100 Subject: [PATCH] Fix configuring open ai region --- infra/main.bicep | 3 ++- infra/main.parameters.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index c4e4352..552685f 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -42,6 +42,7 @@ param openAiResourceGroupName string = '' } }) param openAiResourceGroupLocation string +param customOpenAiResourceGroupLocation string = '' param openAiSkuName string = 'S0' @@ -163,7 +164,7 @@ module openAi 'core/ai/cognitiveservices.bicep' = if (openAiHost == 'azure') { scope: openAiResourceGroup params: { name: !empty(openAiServiceName) ? openAiServiceName : '${abbrs.cognitiveServicesAccounts}${resourceToken}' - location: openAiResourceGroupLocation + location: !empty(customOpenAiResourceGroupLocation) ? customOpenAiResourceGroupLocation : openAiResourceGroupLocation tags: tags sku: { name: openAiSkuName diff --git a/infra/main.parameters.json b/infra/main.parameters.json index bc89529..49c695f 100644 --- a/infra/main.parameters.json +++ b/infra/main.parameters.json @@ -20,7 +20,7 @@ "openAiResourceGroupName": { "value": "${AZURE_OPENAI_RESOURCE_GROUP}" }, - "openAiResourceGroupLocation": { + "customOpenAiResourceGroupLocation": { "value": "${AZURE_OPENAI_SERVICE_LOCATION}" }, "openAiSkuName": {