FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

azurerm_storage_container

Create an Azure Storage Container.

Example Usage

resource "azurerm_resource_group" "test" {
    name = "acctestrg"
    location = "westus"
}

resource "azurerm_storage_account" "test" {
    name = "accteststorageaccount"
    resource_group_name = "${azurerm_resource_group.test.name}"
    location = "westus"
    account_type = "Standard_LRS"

    tags {
        environment = "staging"
    }
}

resource "azurerm_storage_container" "test" {
    name = "vhds"
    resource_group_name = "${azurerm_resource_group.test.name}"
    storage_account_name = "${azurerm_storage_account.test.name}"
    container_access_type = "private"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the arguments listed above:


See the source of this document at Terraform.io