github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/azurerm/r/storage_share.html.markdown (about)

     1  ---
     2  layout: "azurerm"
     3  page_title: "Azure Resource Manager: azurerm_storage_share"
     4  sidebar_current: "docs-azurerm-resource-storage-share"
     5  description: |-
     6    Create an Azure Storage Share.
     7  ---
     8  
     9  # azurerm\_storage\_share
    10  
    11  Create an Azure Storage File Share.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "azurerm_resource_group" "test" {
    17    name     = "acctestrg-%d"
    18    location = "westus"
    19  }
    20  
    21  resource "azurerm_storage_account" "test" {
    22    name                = "acctestacc%s"
    23    resource_group_name = "${azurerm_resource_group.test.name}"
    24    location            = "westus"
    25    account_type        = "Standard_LRS"
    26  }
    27  
    28  resource "azurerm_storage_share" "testshare" {
    29    name = "sharename"
    30  
    31    resource_group_name  = "${azurerm_resource_group.test.name}"
    32    storage_account_name = "${azurerm_storage_account.test.name}"
    33  
    34    quota = 50
    35  }
    36  ```
    37  
    38  ## Argument Reference
    39  
    40  The following arguments are supported:
    41  
    42  * `name` - (Required) The name of the share. Must be unique within the storage account where the share is located.
    43  
    44  * `resource_group_name` - (Required) The name of the resource group in which to
    45      create the share. Changing this forces a new resource to be created.
    46  
    47  * `storage_account_name` - (Required) Specifies the storage account in which to create the share.
    48   Changing this forces a new resource to be created.
    49  
    50  * `quota` - (Optional) The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to 5 TB (5120 GB). Default this is set to 0 which results in setting the quota to 5 TB.
    51  
    52  
    53  ## Attributes Reference
    54  
    55  The following attributes are exported in addition to the arguments listed above:
    56  
    57  * `id` - The storage share Resource ID.
    58  * `url` - The URL of the share