Skip to content

Commit f013309

Browse files
marcvaneijkvikasnav
authored andcommitted
Consistent with Azure Quickstart (#167)
* Update for TP2 * Compliant with Azure template * Revert "Compliant with Azure template" This reverts commit e2da85d. * Consistent with Azure quickstart
1 parent aa6c0da commit f013309

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

101-create-storage-account/azuredeploy.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,32 @@
22
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
33
"contentVersion": "1.0.0.0",
44
"parameters": {
5-
"storageAccountNamePrefix": {
5+
"storageAccountType": {
66
"type": "string",
7+
"allowedValues": [
8+
"Standard_LRS",
9+
"Standard_GRS",
10+
"Standard_RAGRS"
11+
],
12+
"defaultValue": "Standard_LRS",
713
"metadata": {
8-
"description": "Name prefix of the Storage Account. The maximum length of the prefix is 24 characters"
14+
"description": "Type of redundancy for your storage account"
915
}
1016
}
1117
},
1218
"variables": {
13-
"storage": {
14-
"storageAccounts": {
15-
"name": "[replace(replace(tolower(parameters('storageAccountNamePrefix')), '-',''),'.','')]",
16-
"type": "Standard_LRS"
17-
}
18-
}
19+
"storageAccountName": "[concat(uniqueString(resourceGroup().id),'storage')]"
1920
},
2021
"resources": [
2122
{
23+
"name": "[variables('storageAccountName')]",
2224
"type": "Microsoft.Storage/storageAccounts",
23-
"name": "[variables('storage').storageAccounts.name]",
2425
"apiVersion": "2015-06-15",
2526
"location": "[resourceGroup().location]",
2627
"properties": {
27-
"accountType": "[variables('storage').storageAccounts.type]"
28+
"accountType": "[parameters('storageAccountType')]"
2829
}
2930
}
3031
],
31-
"outputs": { }
32-
}
32+
"outputs": {}
33+
}

101-create-storage-account/azuredeploy.parameters.json

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

0 commit comments

Comments
 (0)