github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/website/source/docs/providers/azurerm/r/storage_account.html.markdown (about) 1 --- 2 layout: "azurerm" 3 page_title: "Azure Resource Manager: azurerm_storage_account" 4 sidebar_current: "docs-azurerm-resource-storage-account" 5 description: |- 6 Create a Azure Storage Account. 7 --- 8 9 # azurerm\_storage\_account 10 11 Create an Azure Storage Account. 12 13 ## Example Usage 14 15 ``` 16 resource "azurerm_resource_group" "testrg" { 17 name = "resourceGroupName" 18 location = "westus" 19 } 20 21 resource "azurerm_storage_account" "testsa" { 22 name = "storageaccountname" 23 resource_group_name = "${azurerm_resource_group.testrg.name}" 24 25 location = "westus" 26 account_type = "Standard_GRS" 27 28 tags { 29 environment = "staging" 30 } 31 } 32 ``` 33 34 ## Argument Reference 35 36 The following arguments are supported: 37 38 * `name` - (Required) Specifies the name of the storage account. Changing this forces a 39 new resource to be created. This must be unique across the entire Azure service, 40 not just within the resource group. 41 42 * `resource_group_name` - (Required) The name of the resource group in which to 43 create the storage account. Changing this forces a new resource to be created. 44 45 * `location` - (Required) Specifies the supported Azure location where the 46 resource exists. Changing this forces a new resource to be created. 47 48 * `account_type` - (Required) Defines the type of storage account to be 49 created. Valid options are `Standard_LRS`, `Standard_ZRS`, `Standard_GRS`, 50 `Standard_RAGRS`, `Premium_LRS`. Changing this is sometimes valid - see the Azure 51 documentation for more information on which types of accounts can be converted 52 into other types. 53 54 * `tags` - (Optional) A mapping of tags to assign to the resource. 55 56 Note that although the Azure API supports setting custom domain names for 57 storage accounts, this is not currently supported. 58 59 ## Attributes Reference 60 61 The following attributes are exported in addition to the arguments listed above: 62 63 * `id` - The storage account Resource ID. 64 * `primary_location` - The primary location of the storage account. 65 * `secondary_location` - The secondary location of the storage account. 66 * `primary_blob_endpoint` - The endpoint URL for blob storage in the primary location. 67 * `secondary_blob_endpoint` - The endpoint URL for blob storage in the secondary location. 68 * `primary_queue_endpoint` - The endpoint URL for queue storage in the primary location. 69 * `secondary_queue_endpoint` - The endpoint URL for queue storage in the secondary location. 70 * `primary_table_endpoint` - The endpoint URL for table storage in the primary location. 71 * `secondary_table_endpoint` - The endpoint URL for table storage in the secondary location. 72 * `primary_file_endpoint` - The endpoint URL for file storage in the primary location. 73 * `primary_access_key` - The primary access key for the storage account 74 * `secondary_access_key` - The secondary access key for the storage account