github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/website/source/docs/providers/azure/r/storage_blob.html.markdown (about) 1 --- 2 layout: "azure" 3 page_title: "Azure: azure_storage_blob" 4 sidebar_current: "docs-azure-storage-blob" 5 description: |- 6 Creates a new storage blob within a given storage container on Azure. 7 --- 8 9 # azure\_storage\_blob 10 11 Creates a new storage blob within a given storage container on Azure. 12 13 ## Example Usage 14 15 ``` 16 resource "azure_storage_blob" "foo" { 17 name = "tftesting-blob" 18 storage_service_name = "tfstorserv" 19 storage_container_name = "terraform-storage-container" 20 type = "PageBlob" 21 size = 1024 22 } 23 ```` 24 25 ## Argument Reference 26 27 The following arguments are supported: 28 29 * `name` - (Required) The name of the storage blob. Must be unique within 30 the storage service the blob is located. 31 32 * `storage_service_name` - (Required) The name of the storage service within 33 which the storage container in which the blob will be created resides. 34 35 * `storage_container_name` - (Required) The name of the storage container 36 in which this blob should be created. Must be located on the storage 37 service given with `storage_service_name`. 38 39 * `type` - (Required) The type of the storage blob to be created. One of either 40 `BlockBlob` or `PageBlob`. 41 42 * `size` - (Optional) Used only for `PageBlob`'s to specify the size in bytes 43 of the blob to be created. Must be a multiple of 512. Defaults to 0. 44 45 ## Attributes Reference 46 47 The following attributes are exported: 48 49 * `id` - The storage blob ID. Coincides with the given `name`.