NOTE: The Azure Service Management Provider has been superseded by the Azure Resource Manager Provider and is no longer being actively developed by HashiCorp employees. It continues to be supported by the community. We recommend using the Azure Resource Manager based Microsoft Azure Provider if possible.
azure_storage_blob
Creates a new storage blob within a given storage container on Azure.
Example Usage
resource "azure_storage_blob" "foo" { name = "tftesting-blob" storage_service_name = "tfstorserv" storage_container_name = "terraform-storage-container" type = "PageBlob" size = 1024 }
Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the storage blob. Must be unique within the storage service the blob is located. -
storage_service_name
- (Required) The name of the storage service within which the storage container in which the blob will be created resides. -
storage_container_name
- (Required) The name of the storage container in which this blob should be created. Must be located on the storage service given withstorage_service_name
. -
type
- (Required) The type of the storage blob to be created. One of eitherBlockBlob
orPageBlob
. -
size
- (Optional) Used only forPageBlob
's to specify the size in bytes of the blob to be created. Must be a multiple of 512. Defaults to 0.
Attributes Reference
The following attributes are exported:
-
id
- The storage blob ID. Coincides with the givenname
.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azure/r/storage_blob.html