From d8e24ed9b351d847eee13ce0399d6db15643fe12 Mon Sep 17 00:00:00 2001 From: Jian Wu Date: Fri, 22 May 2026 11:18:12 +0800 Subject: [PATCH] fix: use AZURE_AI_DEPLOYMENTS_LOCATION for model deployment location Update aiDeploymentsLocation parameter to read from AZURE_AI_DEPLOYMENTS_LOCATION env var instead of AZURE_LOCATION, and add a default fallback to the main location parameter so existing environments without the new var continue to work. Companion to Azure/azure-dev PR for fixing #7670. Supersedes #58 --- infra/main.bicep | 2 +- infra/main.parameters.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index 1a6d374..02cc18c 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -45,7 +45,7 @@ param resourceGroupName string = 'rg-${environmentName}' ]) param location string -param aiDeploymentsLocation string +param aiDeploymentsLocation string = location @description('Id of the user or app to assign application roles') param principalId string diff --git a/infra/main.parameters.json b/infra/main.parameters.json index 6725377..af48d8c 100644 --- a/infra/main.parameters.json +++ b/infra/main.parameters.json @@ -18,7 +18,7 @@ "value": "${AZURE_AI_PROJECT_NAME}" }, "aiDeploymentsLocation": { - "value": "${AZURE_LOCATION}" + "value": "${AZURE_AI_DEPLOYMENTS_LOCATION}" }, "principalId": { "value": "${AZURE_PRINCIPAL_ID}"