Skip to content

Commit 6af3a6b

Browse files
DEV-99040: changes to add non-us region for deployment script run
1 parent d112961 commit 6af3a6b

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

arm-template-deployment/deploymentChildScript.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"managedIdentity": {
1515
"type": "String",
16-
"metadata": "Please provide the id of a User Defined Managed Identity with an User Access Administrator role"
16+
"metadata": "Please provide the id of a User Defined Managed Identity with User Access Administrator role"
1717
},
1818
"location": {
1919
"type": "String"
@@ -23,14 +23,17 @@
2323
},
2424
"sourceCodeBranch": {
2525
"type": "string"
26+
},
27+
"deploymentLocation": {
28+
"type": "string"
2629
}
2730
},
2831
"resources": [
2932
{
3033
"type": "Microsoft.Resources/deploymentScripts",
3134
"apiVersion": "2020-10-01",
3235
"name": "[concat(parameters('resourceGroup'),'-script')]",
33-
"location": "West US",
36+
"location": "[parameters('deploymentLocation')]",
3437
"kind": "AzurePowerShell",
3538
"identity": {
3639
"type": "userAssigned",
@@ -54,4 +57,4 @@
5457
}
5558
}
5659
]
57-
}
60+
}

arm-template-deployment/deploymentParentScript.json

+13
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@
1919
"defaultValue": "[utcNow()]",
2020
"type": "String",
2121
"metadata": "Please do not edit this setting"
22+
},
23+
"deploymentLocation": {
24+
"type": "string",
25+
"allowedValues": [
26+
"Australia East","Australia Southeast","Brazil South","Canada Central","Canada East","Central India","Central US","East Asia","East US","East US 2","France Central","Germany West Central","Japan East","Japan West","Korea Central","North Central US","North Europe","Norway East","South Central US","Southeast Asia","South India","Switzerland North","UK South","UK West","UAE North","West Central US","West Europe","West US","West US 2"
27+
],
28+
"metadata": {
29+
"description": "region for deployment script"
30+
},
31+
"defaultValue": "West US"
2232
}
2333
},
2434
"resources": [
@@ -53,6 +63,9 @@
5363
},
5464
"sourceCodeBranch": {
5565
"value": "[variables('sourceCodeBranch')]"
66+
},
67+
"deploymentLocation": {
68+
"value": "[parameters('deploymentLocation')]"
5669
}
5770
}
5871
},

0 commit comments

Comments
 (0)