Skip to content

Instantly share code, notes, and snippets.

@nicocesar
Last active November 5, 2015 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicocesar/9e5dd99a34d98d737696 to your computer and use it in GitHub Desktop.
Save nicocesar/9e5dd99a34d98d737696 to your computer and use it in GitHub Desktop.
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"newStorageAccountNamePrefixMain": { "type": "string" },
"newStorageAccountNamePrefixSSD": { "type": "string" }
},
"variables": {
"storageAccountTypeMain": "Standard_LRS",
"storageAccountTypeSSD": "Premium_LRS"
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('newStorageAccountNamePrefixMain')]",
"apiVersion": "2015-05-01-preview",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "StorageAccountMain"
},
"properties": {
"accountType": "[variables('storageAccountTypeMain')]"
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[parameters('newStorageAccountNamePrefixSSD')]",
"apiVersion": "2015-05-01-preview",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "StorageAccountSSD"
},
"properties": {
"accountType": "[variables('storageAccountTypeSSD')]"
}
}
],
"outputs": {
"StorageAccountMain": {
"value": "[reference(concat('Microsoft.Storage/storageAccounts/',parameters('newStorageAccountNamePrefixMain')))]",
"type": "string"
},
"StorageAccountSSD": {
"value": "[reference(concat('Microsoft.Storage/storageAccounts/',parameters('newStorageAccountNamePrefixSSD')))]",
"type": "string"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment