Files
opentf/website/source/docs/providers/azurerm/r/storage_container.html.markdown
2017-04-17 13:17:54 +03:00

1.8 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
azurerm Azure Resource Manager: azurerm_storage_container docs-azurerm-resource-storage-container Create a Azure Storage Container.

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:

  • name - (Required) The name of the storage container. Must be unique within the storage service the container is located.

  • resource_group_name - (Required) The name of the resource group in which to create the storage container. Changing this forces a new resource to be created.

  • storage_account_name - (Required) Specifies the storage account in which to create the storage container. Changing this forces a new resource to be created.

  • container_access_type - (Required) The 'interface' for access the container provides. Can be either blob, container or private.

Attributes Reference

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

  • id - The storage container Resource ID.
  • properties - Key-value definition of additional properties associated to the storage container