Skip to content

Commit f3ec6d2

Browse files
Made region list dynamic using variables for better flexibility and scalability.
1 parent 2a2c94f commit f3ec6d2

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
9090
GPT_MIN_CAPACITY: '10'
9191
TEXT_EMBEDDING_MIN_CAPACITY: '10'
92+
AZURE_REGIONS: "${{ vars.AZURE_REGIONS }}"
9293

9394

9495
# Send Notification on Quota Failure

Deployment/checkquota.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# List of Azure regions to check for quota (update as needed)
2-
$REGIONS = @("WestUS3", "CanadaCentral", "eastus")
2+
$AZURE_REGIONS = "$env:AZURE_REGIONS"
3+
# Ensure regions are correctly split and trimmed
4+
$REGIONS = ($AZURE_REGIONS -split '[,\s]') | ForEach-Object { $_.Trim() } | Where-Object { $_ -ne "" }
5+
6+
Write-Output "📍 Processed Regions: $($REGIONS -join ', ')"
37

48
$SUBSCRIPTION_ID = $env:AZURE_SUBSCRIPTION_ID
59
$GPT_MIN_CAPACITY = $env:GPT_MIN_CAPACITY

0 commit comments

Comments
 (0)