github.com/adrian-bl/terraform@v0.7.0-rc2.0.20160705220747-de0a34fc3517/website/source/docs/providers/azurerm/r/storage_container.html.markdown (about) 1 --- 2 layout: "azurerm" 3 page_title: "Azure Resource Manager: azurerm_storage_container" 4 sidebar_current: "docs-azurerm-resource-storage-container" 5 description: |- 6 Create a Azure Storage Container. 7 --- 8 9 # azurerm\_storage\_container 10 11 Create an Azure Storage Container. 12 13 ## Example Usage 14 15 ``` 16 resource "azurerm_resource_group" "test" { 17 name = "acctestrg" 18 location = "westus" 19 } 20 21 resource "azurerm_storage_account" "test" { 22 name = "accteststorageaccount" 23 resource_group_name = "${azurerm_resource_group.test.name}" 24 location = "westus" 25 account_type = "Standard_LRS" 26 27 tags { 28 environment = "staging" 29 } 30 } 31 32 resource "azurerm_storage_container" "test" { 33 name = "vhds" 34 resource_group_name = "${azurerm_resource_group.test.name}" 35 storage_account_name = "${azurerm_storage_account.test.name}" 36 container_access_type = "private" 37 } 38 ``` 39 40 ## Argument Reference 41 42 The following arguments are supported: 43 44 * `name` - (Required) The name of the storage container. Must be unique within the storage service the container is located. 45 46 * `resource_group_name` - (Required) The name of the resource group in which to 47 create the storage container. Changing this forces a new resource to be created. 48 49 * `storage_account_name` - (Required) Specifies the storage account in which to create the storage container. 50 Changing this forces a new resource to be created. 51 52 * `container_access_type` - (Required) The 'interface' for access the container provides. Can be either `blob`, `container` or `private`. 53 54 ## Attributes Reference 55 56 The following attributes are exported in addition to the arguments listed above: 57 58 * `id` - The storage container Resource ID. 59 * `properties` - Key-value definition of additional properties associated to the storage container