1+ {
2+ "$schema" : " https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#" ,
3+ "contentVersion" : " 1.0.0.0" ,
4+ "parameters" : {
5+ "storageAccountType" : {
6+ "type" : " string" ,
7+ "defaultValue" : " Standard_LRS" ,
8+ "allowedValues" : [ " Standard_LRS" , " Standard_ZRS" , " Standard_GRS" , " Standard_RAGRS" , " Premium_LRS" ]
9+ }
10+ },
11+ "variables" : {
12+ "baseName" : " mydriving" ,
13+ "storageAccountName" : " [substring(toLower(concat(variables('baseName'), 'logs', uniquestring(resourceGroup().id), '0000000000')), 0, 24)]" ,
14+ "assetsContainerName" : " mydrivinghdi" ,
15+ "mlStorageAccountName" : " [substring(toLower(concat('ml', variables('baseName'), 'logs', uniquestring(resourceGroup().id), '0000000000')), 0, 24)]"
16+ },
17+ "resources" : [
18+ {
19+ "apiVersion" : " 2015-06-15" ,
20+ "name" : " [variables('storageAccountName')]" ,
21+ "type" : " Microsoft.Storage/storageAccounts" ,
22+ "location" : " [resourceGroup().location]" ,
23+ "properties" : { "accountType" : " [parameters('storageAccountType')]" }
24+ },
25+ {
26+ "apiVersion" : " 2015-06-15" ,
27+ "name" : " [variables('mlStorageAccountName')]" ,
28+ "type" : " Microsoft.Storage/storageAccounts" ,
29+ "location" : " [resourceGroup().location]" ,
30+ "properties" : { "accountType" : " [parameters('storageAccountType')]" }
31+ }
32+ ],
33+ "outputs" : {
34+ "storageAccountName" : {
35+ "type" : " string" ,
36+ "value" : " [variables('storageAccountName')]"
37+ },
38+ "storageAccountKey" : {
39+ "type" : " string" ,
40+ "value" : " [listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2015-06-15').key1]"
41+ },
42+ "mlStorageAccountName" : {
43+ "type" : " string" ,
44+ "value" : " [variables('mlStorageAccountName')]"
45+ },
46+ "mlStorageAccountKey" : {
47+ "type" : " string" ,
48+ "value" : " [listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('mlStorageAccountName')), '2015-06-15').key1]"
49+ },
50+ "assetsContainerName" : {
51+ "type" : " string" ,
52+ "value" : " [variables('assetsContainerName')]"
53+ }
54+ }
55+ }
0 commit comments