Skip to content

Commit 56294a6

Browse files
feat: Update allowed Azure regions for resource deployment and enhance location description
1 parent d4b7df9 commit 56294a6

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

infra/main.bicep

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ param solutionName string = 'cwyd'
99
@description('Optional. A unique text value for the solution. This is used to ensure resource names are unique for global resources. Defaults to a 5-character substring of the unique string generated from the subscription ID, resource group name, and solution name.')
1010
param solutionUniqueText string = take(uniqueString(subscription().id, resourceGroup().name, solutionName), 5)
1111

12-
@description('Optional. Location for all resources, if you are using existing resource group provide the location of the resorce group.')
13-
@metadata({
14-
azd: {
15-
type: 'location'
16-
}
17-
})
18-
param location string = resourceGroup().location
12+
@allowed([
13+
'australiaeast'
14+
'eastus2'
15+
'japaneast'
16+
'uksouth'
17+
])
18+
@metadata({ azd: { type: 'location' } })
19+
@description('Required. Azure region for all services. Regions are restricted to guarantee compatibility with paired regions and replica locations for data redundancy and failover scenarios based on articles [Azure regions list](https://learn.microsoft.com/azure/reliability/regions-list) and [Azure Database for MySQL Flexible Server - Azure Regions](https://learn.microsoft.com/azure/mysql/flexible-server/overview#azure-regions).')
20+
param location string
1921

2022
@description('Optional. Existing Log Analytics Workspace Resource ID.')
2123
param existingLogAnalyticsWorkspaceId string = ''

infra/main.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.37.4.10188",
9-
"templateHash": "10335641937823504813"
9+
"templateHash": "6587834896134198095"
1010
}
1111
},
1212
"parameters": {
@@ -29,12 +29,17 @@
2929
},
3030
"location": {
3131
"type": "string",
32-
"defaultValue": "[resourceGroup().location]",
32+
"allowedValues": [
33+
"australiaeast",
34+
"eastus2",
35+
"japaneast",
36+
"uksouth"
37+
],
3338
"metadata": {
3439
"azd": {
3540
"type": "location"
3641
},
37-
"description": "Optional. Location for all resources, if you are using existing resource group provide the location of the resorce group."
42+
"description": "Required. Azure region for all services. Regions are restricted to guarantee compatibility with paired regions and replica locations for data redundancy and failover scenarios based on articles [Azure regions list](https://learn.microsoft.com/azure/reliability/regions-list) and [Azure Database for MySQL Flexible Server - Azure Regions](https://learn.microsoft.com/azure/mysql/flexible-server/overview#azure-regions)."
3843
}
3944
},
4045
"existingLogAnalyticsWorkspaceId": {
@@ -55434,9 +55439,9 @@
5543455439
}
5543555440
},
5543655441
"dependsOn": [
55442+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
5543755443
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageFile)]",
5543855444
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
55439-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
5544055445
"managedIdentityModule",
5544155446
"network"
5544255447
]

0 commit comments

Comments
 (0)