|
2 | 2 | "$schema": "http://schema.management.azure.com/schemas/2015-01-01-preview/deploymentTemplate.json", |
3 | 3 | "contentVersion": "1.0.0.0", |
4 | 4 | "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 | | - }, |
28 | 5 | "vmSku": { |
29 | 6 | "type": "string", |
30 | 7 | "defaultValue": "Standard_A1", |
|
117 | 94 | { |
118 | 95 | "type": "Microsoft.Network/virtualNetworks", |
119 | 96 | "name": "[variables('virtualNetworkName')]", |
120 | | - "location": "[parameters('resourceLocation')]", |
| 97 | + "location": "[resourceGroup().location]", |
121 | 98 | "apiVersion": "[variables('networkApiVersion')]", |
122 | 99 | "properties": { |
123 | 100 | "addressSpace": { |
|
138 | 115 | { |
139 | 116 | "type": "Microsoft.Storage/storageAccounts", |
140 | 117 | "name": "[concat(variables('uniqueStringArray')[copyIndex()], variables('newStorageAccountSuffix'))]", |
141 | | - "location": "[parameters('resourceLocation')]", |
| 118 | + "location": "[resourceGroup().location]", |
142 | 119 | "apiVersion": "[variables('storageApiVersion')]", |
143 | 120 | "copy": { |
144 | 121 | "name": "storageLoop", |
|
151 | 128 | { |
152 | 129 | "type": "Microsoft.Network/publicIPAddresses", |
153 | 130 | "name": "[variables('publicIPAddressName')]", |
154 | | - "location": "[parameters('resourceLocation')]", |
| 131 | + "location": "[resourceGroup().location]", |
155 | 132 | "apiVersion": "[variables('networkApiVersion')]", |
156 | 133 | "properties": { |
157 | 134 | "publicIPAllocationMethod": "Dynamic", |
|
163 | 140 | { |
164 | 141 | "type": "Microsoft.Network/loadBalancers", |
165 | 142 | "name": "[variables('loadBalancerName')]", |
166 | | - "location": "[parameters('resourceLocation')]", |
| 143 | + "location": "[resourceGroup().location]", |
167 | 144 | "apiVersion": "[variables('networkApiVersion')]", |
168 | 145 | "dependsOn": [ |
169 | 146 | "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]" |
|
203 | 180 | { |
204 | 181 | "type": "Microsoft.Compute/virtualMachineScaleSets", |
205 | 182 | "name": "[variables('namingInfix')]", |
206 | | - "location": "[parameters('resourceLocation')]", |
| 183 | + "location": "[resourceGroup().location]", |
207 | 184 | "apiVersion": "[variables('computeApiVersion')]", |
208 | 185 | "dependsOn": [ |
209 | 186 | "storageLoop", |
|
0 commit comments