|
45 | 45 | } |
46 | 46 | }, |
47 | 47 | "variables": { |
48 | | - "apiVersion": { |
49 | | - "storage": { "storageAccounts": "2015-06-15" }, |
50 | | - "compute": { "virtualMachines": "2015-06-15" }, |
51 | | - "network": { |
52 | | - "virtualNetworks": "2015-05-01-preview", |
53 | | - "networkInterfaces": "2015-05-01-preview", |
54 | | - "publicIPAddresses": "2015-05-01-preview", |
55 | | - "networkSecurityGroups": "2015-05-01-preview" |
56 | | - }, |
57 | | - "insights": { "vmDiagnosticsSettings": "2015-06-15" } |
58 | | - }, |
59 | | - "storage": { |
60 | | - "storageAccounts": { |
| 48 | + "storage": { |
| 49 | + "storageAccounts": { |
61 | 50 | "name": "[replace(replace(tolower(parameters('storageAccountNamePrefix')), '-',''),'.','')]", |
62 | 51 | "type": "Standard_LRS" |
63 | 52 | } |
|
90 | 79 | }, |
91 | 80 | "resources": [ |
92 | 81 | { |
93 | | - "apiVersion": "[variables('apiVersion').network.networkSecurityGroups]", |
| 82 | + "apiVersion":"2015-05-01-preview", |
94 | 83 | "type": "Microsoft.Network/networkSecurityGroups", |
95 | 84 | "name": "[variables('networkSecurityGroupName')]", |
96 | 85 | "location": "[resourceGroup().location]", |
|
118 | 107 | { |
119 | 108 | "type": "Microsoft.Storage/storageAccounts", |
120 | 109 | "name": "[variables('storage').storageAccounts.name]", |
121 | | - "apiVersion": "[variables('apiVersion').storage.storageAccounts]", |
| 110 | + "apiVersion": "2015-06-15", |
122 | 111 | "location": "[resourceGroup().location]", |
123 | 112 | "properties": { |
124 | 113 | "accountType": "[variables('storage').storageAccounts.type]" |
125 | 114 | } |
126 | 115 | }, |
127 | 116 | { |
128 | | - "apiVersion": "[variables('apiVersion').network.publicIPAddresses]", |
| 117 | + "apiVersion": "2015-05-01-preview", |
129 | 118 | "type": "Microsoft.Network/publicIPAddresses", |
130 | 119 | "name": "[variables('publicIPAddressName')]", |
131 | 120 | "location": "[resourceGroup().location]", |
|
137 | 126 | } |
138 | 127 | }, |
139 | 128 | { |
140 | | - "apiVersion": "[variables('apiVersion').network.virtualNetworks]", |
| 129 | + "apiVersion": "2015-05-01-preview", |
141 | 130 | "type": "Microsoft.Network/virtualNetworks", |
142 | 131 | "name": "[variables('virtualNetworkName')]", |
143 | 132 | "location": "[resourceGroup().location]", |
|
167 | 156 | } |
168 | 157 | }, |
169 | 158 | { |
170 | | - "apiVersion": "[variables('apiVersion').network.networkInterfaces]", |
| 159 | + "apiVersion": "2015-05-01-preview", |
171 | 160 | "type": "Microsoft.Network/networkInterfaces", |
172 | 161 | "name": "[variables('nicName')]", |
173 | 162 | "location": "[resourceGroup().location]", |
|
193 | 182 | } |
194 | 183 | }, |
195 | 184 | { |
196 | | - "apiVersion": "[variables('apiVersion').compute.virtualMachines]", |
| 185 | + "apiVersion": "2015-06-15", |
197 | 186 | "type": "Microsoft.Compute/virtualMachines", |
198 | 187 | "name": "[variables('vmName')]", |
199 | 188 | "location": "[resourceGroup().location]", |
|
220 | 209 | "osDisk": { |
221 | 210 | "name": "osdisk", |
222 | 211 | "vhd": { |
223 | | - "uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storage').storageAccounts.name), variables('apiVersion').storage.storageAccounts).primaryEndpoints.blob, variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]" |
| 212 | + "uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storage').storageAccounts.name), '2015-06-15').primaryEndpoints.blob, variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]" |
224 | 213 | }, |
225 | 214 | "caching": "ReadWrite", |
226 | 215 | "createOption": "FromImage" |
|
236 | 225 | "diagnosticsProfile": { |
237 | 226 | "bootDiagnostics": { |
238 | 227 | "enabled": "true", |
239 | | - "storageUri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storage').storageAccounts.name), variables('apiVersion').storage.storageAccounts).primaryEndpoints.blob)]" |
| 228 | + "storageUri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storage').storageAccounts.name), '2015-06-15').primaryEndpoints.blob)]" |
240 | 229 | } |
241 | 230 | } |
242 | 231 | }, |
|
245 | 234 | "name": "Microsoft.Insights.VMDiagnosticsSettings", |
246 | 235 | "type": "extensions", |
247 | 236 | "location": "[resourceGroup().location]", |
248 | | - "apiVersion": "[variables('apiVersion').insights.vmDiagnosticsSettings]", |
| 237 | + "apiVersion": "2015-06-15", |
249 | 238 | "dependsOn": [ |
250 | 239 | "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" |
251 | 240 | ], |
|
0 commit comments