Skip to content

Commit 59b4d12

Browse files
Merge pull request #523 from microsoft/psl-bug-20916
fix: Added Validation for Supported regions for AI deployment location
2 parents b8f300f + 7208274 commit 59b4d12

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

infra/main.bicep

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ param secondaryLocation string = 'eastus2'
1414
param AZURE_LOCATION string = ''
1515

1616
// ========== AI Deployments Location ========== //
17+
@allowed([
18+
'australiaeast'
19+
'canadaeast'
20+
'centraluseuap'
21+
'eastus'
22+
'eastus2'
23+
'francecentral'
24+
'japaneast'
25+
'koreacentral'
26+
'norwayeast'
27+
'polandcentral'
28+
'southeastasia'
29+
'southindia'
30+
'swedencentral'
31+
'switzerlandnorth'
32+
'uaenorth'
33+
'uksouth'
34+
'westus'
35+
'westus3'
36+
])
1737
@description('Location for AI deployments. This should be a valid Azure region where OpenAI services are available.')
1838
@metadata({
1939
azd: {
@@ -43,7 +63,6 @@ param gptModelVersion string = '2025-04-14'
4363
@description('API version for Azure OpenAI service. This should be a valid API version supported by the service.')
4464
param azureOpenaiAPIVersion string = '2025-01-01-preview'
4565

46-
4766
@description('API version for Azure AI Agent service. This should be a valid API version supported by the service.')
4867
param azureAiAgentApiVersion string = '2025-05-01'
4968

infra/main.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.36.177.2456",
8-
"templateHash": "12338844521177910469"
8+
"templateHash": "5067006710993312117"
99
}
1010
},
1111
"parameters": {
@@ -34,6 +34,26 @@
3434
},
3535
"aiDeploymentsLocation": {
3636
"type": "string",
37+
"allowedValues": [
38+
"australiaeast",
39+
"canadaeast",
40+
"centraluseuap",
41+
"eastus",
42+
"eastus2",
43+
"francecentral",
44+
"japaneast",
45+
"koreacentral",
46+
"norwayeast",
47+
"polandcentral",
48+
"southeastasia",
49+
"southindia",
50+
"swedencentral",
51+
"switzerlandnorth",
52+
"uaenorth",
53+
"uksouth",
54+
"westus",
55+
"westus3"
56+
],
3757
"metadata": {
3858
"azd": {
3959
"type": "location",

0 commit comments

Comments
 (0)