» Data Source: azurerm_storage_account
Use this data source to access information about an existing Storage Account.
» Example Usage
data "azurerm_storage_account" "test" {
name = "packerimages"
resource_group_name = "packer-storage"
}
output "storage_account_tier" {
value = "${data.azurerm_storage_account.test.account_tier}"
}
» Argument Reference
-
name- (Required) Specifies the name of the Storage Account -
resource_group_name- (Required) Specifies the name of the resource group the Storage Account is located in.
» Attributes Reference
-
id- The ID of the Storage Account. -
location- The Azure location where the Storage Account exists -
account_kind- The Kind of account. -
account_tier- The Tier of this storage account. -
account_replication_type- The type of replication used for this storage account. -
access_tier- The access tier forBlobStorageaccounts. -
enable_blob_encryption- Are Encryption Services are enabled for Blob storage? See here for more information. -
enable_file_encryption- Are Encryption Services are enabled for File storage? See here for more information. -
enable_https_traffic_only- Is traffic only allowed via HTTPS? See here for more information. -
is_hns_enabled- Is Hierarchical Namespace enabled? -
account_encryption_source- The Encryption Source for this Storage Account. -
custom_domain- Acustom_domainblock as documented below. -
tags- A mapping of tags to assigned to the resource. -
primary_location- The primary location of the Storage Account. -
secondary_location- The secondary location of the Storage Account. -
primary_blob_endpoint- The endpoint URL for blob storage in the primary location. -
primary_blob_host- The hostname with port if applicable for blob storage in the primary location. -
secondary_blob_endpoint- The endpoint URL for blob storage in the secondary location. -
secondary_blob_host- The hostname with port if applicable for blob storage in the secondary location. -
primary_queue_endpoint- The endpoint URL for queue storage in the primary location. -
primary_queue_host- The hostname with port if applicable for queue storage in the primary location. -
secondary_queue_endpoint- The endpoint URL for queue storage in the secondary location. -
secondary_queue_host- The hostname with port if applicable for queue storage in the secondary location. -
primary_table_endpoint- The endpoint URL for table storage in the primary location. -
primary_table_host- The hostname with port if applicable for table storage in the primary location. -
secondary_table_endpoint- The endpoint URL for table storage in the secondary location. -
secondary_table_host- The hostname with port if applicable for table storage in the secondary location. -
primary_file_endpoint- The endpoint URL for file storage in the primary location. -
primary_file_host- The hostname with port if applicable for file storage in the primary location. -
secondary_file_endpoint- The endpoint URL for file storage in the secondary location. -
secondary_file_host- The hostname with port if applicable for file storage in the secondary location. -
primary_dfs_endpoint- The endpoint URL for DFS storage in the primary location. -
primary_dfs_host- The hostname with port if applicable for DFS storage in the primary location. -
secondary_dfs_endpoint- The endpoint URL for DFS storage in the secondary location. -
secondary_dfs_host- The hostname with port if applicable for DFS storage in the secondary location. -
primary_web_endpoint- The endpoint URL for web storage in the primary location. -
primary_web_host- The hostname with port if applicable for web storage in the primary location. -
secondary_web_endpoint- The endpoint URL for web storage in the secondary location. -
secondary_web_host- The hostname with port if applicable for web storage in the secondary location. -
primary_access_key- The primary access key for the Storage Account. -
secondary_access_key- The secondary access key for the Storage Account. -
primary_connection_string- The connection string associated with the primary location -
secondary_connection_string- The connection string associated with the secondary location -
primary_blob_connection_string- The connection string associated with the primary blob location -
secondary_blob_connection_string- The connection string associated with the secondary blob location
-
custom_domainsupports the following: -
name- The Custom Domain Name used for the Storage Account.