Skip to content

Commit ed5ae1e

Browse files
author
Kay Singh
committed
Merge pull request #1696 from marcvaneijk/201-vmss-windows-nat
Location fix
2 parents 573ab5d + 1092ddc commit ed5ae1e

2 files changed

Lines changed: 5 additions & 31 deletions

File tree

201-vmss-windows-nat/azuredeploy.json

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,6 @@
22
"$schema": "http://schema.management.azure.com/schemas/2015-01-01-preview/deploymentTemplate.json",
33
"contentVersion": "1.0.0.0",
44
"parameters": {
5-
"resourceLocation": {
6-
"type": "string",
7-
"allowedValues": [
8-
"East US",
9-
"East US 2",
10-
"West US",
11-
"Central US",
12-
"South Central US",
13-
"North Central US",
14-
"North Europe",
15-
"West Europe",
16-
"Southeast Asia",
17-
"East Asia",
18-
"Japan West",
19-
"Japan East",
20-
"Brazil South",
21-
"Australia East",
22-
"Australia Southeast"
23-
],
24-
"metadata": {
25-
"description": "Azure region where all resources will be deployed. This is distinct from resource group location."
26-
}
27-
},
285
"vmSku": {
296
"type": "string",
307
"defaultValue": "Standard_A1",
@@ -117,7 +94,7 @@
11794
{
11895
"type": "Microsoft.Network/virtualNetworks",
11996
"name": "[variables('virtualNetworkName')]",
120-
"location": "[parameters('resourceLocation')]",
97+
"location": "[resourceGroup().location]",
12198
"apiVersion": "[variables('networkApiVersion')]",
12299
"properties": {
123100
"addressSpace": {
@@ -138,7 +115,7 @@
138115
{
139116
"type": "Microsoft.Storage/storageAccounts",
140117
"name": "[concat(variables('uniqueStringArray')[copyIndex()], variables('newStorageAccountSuffix'))]",
141-
"location": "[parameters('resourceLocation')]",
118+
"location": "[resourceGroup().location]",
142119
"apiVersion": "[variables('storageApiVersion')]",
143120
"copy": {
144121
"name": "storageLoop",
@@ -151,7 +128,7 @@
151128
{
152129
"type": "Microsoft.Network/publicIPAddresses",
153130
"name": "[variables('publicIPAddressName')]",
154-
"location": "[parameters('resourceLocation')]",
131+
"location": "[resourceGroup().location]",
155132
"apiVersion": "[variables('networkApiVersion')]",
156133
"properties": {
157134
"publicIPAllocationMethod": "Dynamic",
@@ -163,7 +140,7 @@
163140
{
164141
"type": "Microsoft.Network/loadBalancers",
165142
"name": "[variables('loadBalancerName')]",
166-
"location": "[parameters('resourceLocation')]",
143+
"location": "[resourceGroup().location]",
167144
"apiVersion": "[variables('networkApiVersion')]",
168145
"dependsOn": [
169146
"[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]"
@@ -203,7 +180,7 @@
203180
{
204181
"type": "Microsoft.Compute/virtualMachineScaleSets",
205182
"name": "[variables('namingInfix')]",
206-
"location": "[parameters('resourceLocation')]",
183+
"location": "[resourceGroup().location]",
207184
"apiVersion": "[variables('computeApiVersion')]",
208185
"dependsOn": [
209186
"storageLoop",

201-vmss-windows-nat/azuredeploy.parameters.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
33
"contentVersion": "1.0.0.0",
44
"parameters": {
5-
"resourceLocation": {
6-
"value": "West US"
7-
},
85
"vmSku": {
96
"value": "Standard_A1"
107
},

0 commit comments

Comments
 (0)