StorageAccount
A resource of the Azure provider, version 0.3.0, in its Storage group. Import it with:
import StorageAccount from "azure/storage"Example
resource StorageAccount example {
name = "example-value"
resourceGroup = "example-value"
location = "example-value"
sku = "Standard_LRS"
kind = "StorageV2"
accessTier = "Hot"
enableHttpsTrafficOnly = true
minimumTlsVersion = "TLS1_2"
allowBlobPublicAccess = false
allowSharedKeyAccess = true
enableHierarchicalNamespace = false
infrastructureEncryptionEnabled = false
largeFileSharesEnabled = false
networkRules = "..."
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | The name of the storage account (3-24 chars, lowercase letters and numbers, globally unique) |
resourceGroup | string | — | No | The resource group name |
location | string | — | No | The Azure region for the storage account |
sku | string | "Standard_LRS" | No | The SKU (pricing tier and replication) Allowed: "Standard_LRS", "Standard_GRS", "Standard_RAGRS", "Standard_ZRS", "Premium_LRS", "Premium_ZRS" |
kind | string | "StorageV2" | No | The kind of storage account Allowed: "Storage", "StorageV2", "BlobStorage", "BlockBlobStorage", "FileStorage" |
accessTier | string | "Hot" | No | The access tier for blob storage Allowed: "Hot", "Cool" |
enableHttpsTrafficOnly | boolean | true | No | Enable HTTPS traffic only |
minimumTlsVersion | string | "TLS1_2" | No | Minimum TLS version Allowed: "TLS1_0", "TLS1_1", "TLS1_2" |
allowBlobPublicAccess | boolean | false | No | Allow blob public access |
allowSharedKeyAccess | boolean | true | No | Allow shared key access |
enableHierarchicalNamespace | boolean | false | No | Enable hierarchical namespace (Data Lake Storage Gen2) |
infrastructureEncryptionEnabled | boolean | false | No | Enable infrastructure encryption |
largeFileSharesEnabled | boolean | false | No | Enable large file shares (100 TiB capacity) |
networkRules | any | — | No | Network rules for firewall configuration |
tags | object | — | No | Tags to apply to the storage account |
Set by Azure after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
id | string | Yes | The resource ID of the storage account |
primaryBlobEndpoint | string | No | The primary blob endpoint |
primaryFileEndpoint | string | No | The primary file endpoint |
primaryQueueEndpoint | string | No | The primary queue endpoint |
primaryTableEndpoint | string | No | The primary table endpoint |
primaryAccessKey | string | No | The primary access key |
primaryConnectionString | string | No | The primary connection string |
provisioningState | string | No | The provisioning state |