Microsoft.Storage storageAccounts 2015-05-01-preview
Bicep resource definition
The storageAccounts resource type can be deployed to: Resource groups.
To learn about resource group deployments, see Bicep.
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Storage/storageAccounts resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Storage/storageAccounts@2015-05-01-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
properties: {
accountType: 'string'
}
}
Property values
storageAccounts
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) Character limit: 3-24 Valid characters: Lowercase letters and numbers. Resource name must be unique across Azure. |
| location | Resource location | string (required) |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| properties | StorageAccountPropertiesCreateParametersOrStorageAccountProperties |
StorageAccountPropertiesCreateParametersOrStorageAccountProperties
| Name | Description | Value |
|---|---|---|
| accountType | Gets or sets the account type. | 'Premium_LRS' 'Standard_GRS' 'Standard_LRS' 'Standard_RAGRS' 'Standard_ZRS' |
Quickstart templates
The following quickstart templates deploy this resource type.
| Template | Description |
|---|---|
| Connect to a storage account from a VM via private endpoint |
This sample shows how to use connect a virtual network to access a blob storage account via private endpoint. |
| Connect to an Azure File Share via a Private Endpoint |
This sample shows how to use configure a virtual network and private DNS zone to access an Azure File Share via a private endpoint. |
| Create a Standard Storage Account |
This template creates a Standard Storage Account |
| 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. |
| Create Storage Account and Blob Container |
Creates an Azure Storage account and a blob container. Template originally authored by John Downs. |
| Storage Account with SSE and blob deletion retention policy |
This template creates a Storage Account with Storage Service Encryption and a blob deletion retention policy |
| Azure Storage Account Encryption with customer-managed key |
This template deploys a Storage Account with a customer-managed key for encryption that's generated and placed inside a Key Vault. |
| 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 Storage Account with SFTP enabled |
Creates an Azure Storage account and a blob container that can be accessed using SFTP protocol. Access can be password or public-key based. |
| Deploys a static website |
Deploys a static website with a backing storage account |
ARM template resource definition
The storageAccounts resource type can be deployed to: Resource groups.
To learn about resource group deployments, see ARM template.
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Storage/storageAccounts resource, add the following JSON to your template.
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2015-05-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"accountType": "string"
}
}
Property values
storageAccounts
| Name | Description | Value |
|---|---|---|
| type | The resource type | 'Microsoft.Storage/storageAccounts' |
| apiVersion | The resource api version | '2015-05-01-preview' |
| name | The resource name | string (required) Character limit: 3-24 Valid characters: Lowercase letters and numbers. Resource name must be unique across Azure. |
| location | Resource location | string (required) |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| properties | StorageAccountPropertiesCreateParametersOrStorageAccountProperties |
StorageAccountPropertiesCreateParametersOrStorageAccountProperties
| Name | Description | Value |
|---|---|---|
| accountType | Gets or sets the account type. | 'Premium_LRS' 'Standard_GRS' 'Standard_LRS' 'Standard_RAGRS' 'Standard_ZRS' |
Quickstart templates
The following quickstart templates deploy this resource type.
| Template | Description |
|---|---|
| Connect to a storage account from a VM via private endpoint |
This sample shows how to use connect a virtual network to access a blob storage account via private endpoint. |
| Connect to an Azure File Share via a Private Endpoint |
This sample shows how to use configure a virtual network and private DNS zone to access an Azure File Share via a private endpoint. |
| Create a Standard Storage Account |
This template creates a Standard Storage Account |
| 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. |
| Create Storage Account and Blob Container |
Creates an Azure Storage account and a blob container. Template originally authored by John Downs. |
| Storage Account with SSE and blob deletion retention policy |
This template creates a Storage Account with Storage Service Encryption and a blob deletion retention policy |
| Azure Storage Account Encryption with customer-managed key |
This template deploys a Storage Account with a customer-managed key for encryption that's generated and placed inside a Key Vault. |
| 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 Storage Account with SFTP enabled |
Creates an Azure Storage account and a blob container that can be accessed using SFTP protocol. Access can be password or public-key based. |
| Deploys a static website |
Deploys a static website with a backing storage account |
Terraform (AzAPI provider) resource definition
The storageAccounts resource type can be deployed to: Resource groups.
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Storage/storageAccounts resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Storage/storageAccounts@2015-05-01-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
accountType = "string"
}
})
}
Property values
storageAccounts
| Name | Description | Value |
|---|---|---|
| type | The resource type | "Microsoft.Storage/storageAccounts@2015-05-01-preview" |
| name | The resource name | string (required) Character limit: 3-24 Valid characters: Lowercase letters and numbers. Resource name must be unique across Azure. |
| location | Resource location | string (required) |
| parent_id | To deploy to a resource group, use the ID of that resource group. | string (required) |
| tags | Resource tags | Dictionary of tag names and values. |
| properties | StorageAccountPropertiesCreateParametersOrStorageAccountProperties |
StorageAccountPropertiesCreateParametersOrStorageAccountProperties
| Name | Description | Value |
|---|---|---|
| accountType | Gets or sets the account type. | "Premium_LRS" "Standard_GRS" "Standard_LRS" "Standard_RAGRS" "Standard_ZRS" |