Skip to content

Instantly share code, notes, and snippets.

@rchaganti
Created November 10, 2015 15:26
Show Gist options
  • Select an option

  • Save rchaganti/03d26f0b77465bb4f567 to your computer and use it in GitHub Desktop.

Select an option

Save rchaganti/03d26f0b77465bb4f567 to your computer and use it in GitHub Desktop.
ARM Template for deploying storage account
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccountName": {
"type": "string",
"defaultValue": "MyARMDemo",
"minLength": 3,
"maxLength": 24,
"metadata": {
"description": "Unique name for the storage account."
}
},
"storageAccountType": {
"type": "string",
"defaultValue": "Standard_LRS",
"allowedValues": [
"Standard_LRS",
"Standard_GRS",
"Standard_ZRS",
"Premium_LRS",
"Standard_RAGRS"
],
"metadata": {
"description": "Account type based on the storage redundancy requirements."
}
}
},
"resources": [
{
"name": "[parameters('storageAccountName')]",
"type": "Microsoft.Storage/storageAccounts",
"location": "[ResourceGroup().Location]",
"apiVersion": "2015-05-01-preview",
"properties": {
"accountType": "[parameters('storageAccountType')]"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment