|
2 | 2 | "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", |
3 | 3 | "contentVersion": "1.0.0.0", |
4 | 4 | "parameters": { |
| 5 | + "administratorLogin": { |
| 6 | + "type": "string", |
| 7 | + "metadata": { |
| 8 | + "description": "The admin user of the SQL Server" |
| 9 | + } |
| 10 | + }, |
| 11 | + "administratorLoginPassword": { |
| 12 | + "type": "securestring", |
| 13 | + "metadata": { |
| 14 | + "description": "The password of the admin user of the SQL Server" |
| 15 | + } |
| 16 | + }, |
| 17 | + "databaseName": { |
| 18 | + "type": "string", |
| 19 | + "metadata": { |
| 20 | + "description": "The name of the new database to create." |
| 21 | + } |
| 22 | + }, |
| 23 | + "storageName": { |
| 24 | + "type": "string", |
| 25 | + "metadata": { |
| 26 | + "description": "The name of the new database to create." |
| 27 | + } |
| 28 | + }, |
5 | 29 | "skuName": { |
6 | 30 | "type": "string", |
7 | 31 | "defaultValue": "F1", |
|
31 | 55 | "description": "Describes plan's instance count" |
32 | 56 | } |
33 | 57 | }, |
34 | | - "administratorLogin": { |
35 | | - "type": "string", |
36 | | - "metadata": { |
37 | | - "description": "The admin user of the SQL Server" |
38 | | - } |
39 | | - }, |
40 | | - "administratorLoginPassword": { |
41 | | - "type": "securestring", |
42 | | - "metadata": { |
43 | | - "description": "The password of the admin user of the SQL Server" |
44 | | - } |
45 | | - }, |
46 | | - "databaseName": { |
47 | | - "type": "string", |
48 | | - "metadata": { |
49 | | - "description": "The name of the new database to create." |
50 | | - } |
51 | | - }, |
52 | 58 | "collation": { |
53 | 59 | "type": "string", |
54 | 60 | "defaultValue": "SQL_Latin1_General_CP1_CI_AS", |
|
135 | 141 | "sqlserverName": "[concat('sqlserver-', uniqueString(resourceGroup().id))]", |
136 | 142 | "cacheName": "[concat('cache-', uniqueString(resourceGroup().id))]", |
137 | 143 | "adminWebName": "[concat('CBAdminWeb-', uniqueString(resourceGroup().id))]", |
138 | | - "storageName": "[concat('STORAGE_', uniqueString(resourceGroup().id))]", |
139 | | - "socketName": "[concat('CBSocket-', uniqueString(resourceGroup().id))]" |
| 144 | + "socketName": "[concat('CBSocket-', uniqueString(resourceGroup().id))]", |
| 145 | + "storageAccountId": "[concat(resourceGroup().id,'/providers/Microsoft.Storage/storageAccounts/', parameters('storageName'))]" |
140 | 146 | }, |
141 | 147 | "resources": [ |
142 | 148 | { // SQL Server |
|
235 | 241 | "type": "SQLServer" |
236 | 242 | }, |
237 | 243 | "CloudBreadStorageConString": { |
238 | | - "value": "[concat('DefaultEndpointsProtocol=https;AccountName=', listKeys(variables('storageAccountid'),'2015-05-01-preview').key1)", |
| 244 | + "value": "[concat('DefaultEndpointsProtocol=https;AccountName=',parameters('storageName'),';AccountKey=',concat(listKeys(variables('storageAccountId'),'2015-05-01-preview').key1))]", |
239 | 245 | "type": "Custom" |
240 | 246 | } |
241 | 247 | } |
|
249 | 255 | "[concat('Microsoft.Cache/Redis/', variables('cacheName'))]" |
250 | 256 | ], |
251 | 257 | "properties": { |
252 | | - "CacheConnection": "[concat(variables('cacheName'),'.redis.cache.windows.net,abortConnect=false,ssl=true,password=', listKeys(resourceId('Microsoft.Cache/Redis', variables('cacheName')), '2015-08-01').primaryKey)]" |
| 258 | + "CloudBreadSocketRedisServer": "[concat(variables('cacheName'),'.redis.cache.windows.net,abortConnect=false,ssl=true,password=', listKeys(resourceId('Microsoft.Cache/Redis', variables('cacheName')), '2015-08-01').primaryKey)]", |
| 259 | + "CloudBreadRankRedisServer":"[concat(variables('cacheName'),'.redis.cache.windows.net,abortConnect=false,ssl=true,password=', listKeys(resourceId('Microsoft.Cache/Redis', variables('cacheName')), '2015-08-01').primaryKey)]", |
| 260 | + "CloudBreadGameLogRedisServer":"[concat(variables('cacheName'),'.redis.cache.windows.net,abortConnect=false,ssl=true,password=', listKeys(resourceId('Microsoft.Cache/Redis', variables('cacheName')), '2015-08-01').primaryKey)]" |
253 | 261 | } |
254 | 262 | } |
255 | 263 | ] |
|
292 | 300 | "resources": [] |
293 | 301 | }, |
294 | 302 | { // Storage Accounts |
295 | | - "name": "[variables('storageName')]", |
| 303 | + "name": "[parameters('storageName')]", |
296 | 304 | "type": "Microsoft.Storage/storageAccounts", |
297 | 305 | "location": "[resourceGroup().location]", |
298 | 306 | "apiVersion": "2015-06-15", |
|
0 commit comments