Microsoft.Storage storageAccounts template reference
Template format
To create a Microsoft.Storage/storageAccounts resource, add the following JSON to the resources section of your template.
{
"name": "string",
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2015-06-15",
"location": "string",
"tags": {},
"properties": {
"accountType": "string"
}
}
Property values
The following tables describe the values you need to set in the schema.
Microsoft.Storage/storageAccounts object
Name | Type | Required | Value |
---|---|---|---|
name | string | Yes | The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. Min length: 3 Max length: 24 |
type | enum | Yes | Microsoft.Storage/storageAccounts |
apiVersion | enum | Yes | 2015-06-15 |
location | string | Yes | The location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed. |
tags | object | No | A list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters. |
properties | object | Yes | StorageAccountPropertiesCreateParameters object |
StorageAccountPropertiesCreateParameters object
Name | Type | Required | Value |
---|---|---|---|
accountType | enum | Yes | The sku name. Required for account creation; optional for update. Note that in older versions, sku name was called accountType. - Standard_LRS, Standard_ZRS, Standard_GRS, Standard_RAGRS, Premium_LRS |
Quickstart templates
The following quickstart templates deploy this resource type.
Template | Description |
---|---|
Create a Standard Storage Account |
This template creates a Standard Storage Account |
Create Storage Account and Blob Container |
Creates an Azure Storage account and a blob container. Template originally authored by John Downs. |
Create a storage account with file share |
Creates an Azure storage account and file share. |
Create a storage account with multiple Blob containers |
Creates an Azure storage account and multiple blob containers. |
Create a storage account with multiple file shares |
Creates an Azure storage account and multiple file shares. |
Create a Storage Account with SSE |
This template creates a Storage Account with Storage Service Encryption for Data at Rest |
Storage account with Advanced Threat Protection. |
This template allows you to deploy an Azure Storage account with Advanced Threat Protection enabled. |