Use this data source to access information about an existing Storage Container.
data "azurerm_storage_container" "example" {
name = "example-container-name"
storage_account_name = "example-storage-account-name"
}
The following arguments are supported:
name
- The name of the Container.
storage_account_name
- The name of the Storage Account where the Container exists.
container_access_type
- The Access Level configured for this Container.
default_encryption_scope
- The default encryption scope in use for blobs uploaded to this container.
encryption_scope_override_enabled
- Whether blobs are allowed to override the default encryption scope for this container.
has_immutability_policy
- Is there an Immutability Policy configured on this Storage Container?
has_legal_hold
- Is there a Legal Hold configured on this Storage Container?
metadata
- A mapping of MetaData for this Container.
resource_manager_id
- The Resource Manager ID of this Storage Container.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Storage Container.