Skip to content

Commit a484e5a

Browse files
changed the variable name
1 parent d50cc7b commit a484e5a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

azure.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ hooks:
77
posix:
88
shell: sh
99
run: >
10-
./infra/scripts/validate_model_deployment_quota.sh --subscription "$AZURE_SUBSCRIPTION_ID" --location "${AZURE_OPENAI_LOCATION:-swedencentral}" --models-parameter "aiModelDeployments"
10+
./infra/scripts/validate_model_deployment_quota.sh --subscription "$AZURE_SUBSCRIPTION_ID" --location "${AZURE_ENV_OPENAI_LOCATION:-swedencentral}" --models-parameter "aiModelDeployments"
1111
interactive: false
1212
continueOnError: false
1313

1414
windows:
1515
shell: pwsh
1616
run: >
17-
$location = if ($env:AZURE_OPENAI_LOCATION) { $env:AZURE_OPENAI_LOCATION } else { "swedencentral" };
17+
$location = if ($env:AZURE_ENV_OPENAI_LOCATION) { $env:AZURE_ENV_OPENAI_LOCATION } else { "swedencentral" };
1818
./infra/scripts/validate_model_deployment_quotas.ps1 -SubscriptionId $env:AZURE_SUBSCRIPTION_ID -Location $location -ModelsParameter "aiModelDeployments"
1919
interactive: false
2020
continueOnError: false

infra/scripts/validate_model_quota.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ if ($FallbackRegions.Count -gt 0) {
9797
}
9898

9999
Write-Host "`n🔧 To proceed, run:"
100-
Write-Host " azd env set AZURE_OPENAI_LOCATION '<region>'"
100+
Write-Host " azd env set AZURE_ENV_OPENAI_LOCATION '<region>'"
101101
Write-Host "📌 To confirm it's set correctly, run:"
102-
Write-Host " azd env get-value AZURE_OPENAI_LOCATION"
102+
Write-Host " azd env get-value AZURE_ENV_OPENAI_LOCATION"
103103
Write-Host "▶️ Once confirmed, re-run azd up to deploy the model in the new region."
104104
exit 2
105105
}

infra/scripts/validate_model_quota.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ if [[ "${#FALLBACK_REGIONS[@]}" -gt 0 ]]; then
8989
echo "$fallback"
9090
done
9191
echo -e "\n🔧 To proceed, run:"
92-
echo " azd env set AZURE_OPENAI_LOCATION '<region>'"
92+
echo " azd env set AZURE_ENV_OPENAI_LOCATION '<region>'"
9393
echo "📌 To confirm it's set correctly, run:"
94-
echo " azd env get-value AZURE_OPENAI_LOCATION"
94+
echo " azd env get-value AZURE_ENV_OPENAI_LOCATION"
9595
echo "▶️ Once confirmed, re-run azd up to deploy the model in the new region."
9696
exit 2
9797
fi

0 commit comments

Comments
 (0)