» Data Source: azurerm_storage_account

Use this data source to access information about an existing Storage Account.

» Example Usage

data "azurerm_storage_account" "example" {
  name                = "packerimages"
  resource_group_name = "packer-storage"

output "storage_account_tier" {
  value = data.azurerm_storage_account.example.account_tier

» Argument Reference

  • name - Specifies the name of the Storage Account
  • resource_group_name - Specifies the name of the resource group the Storage Account is located in.

» Attributes Reference

» ~> Note: If there's a Write Lock on the Storage Account, or the account doesn't have permission then these fields will have an empty value due to a bug in the Azure API

  • custom_domain supports the following:

  • name - The Custom Domain Name used for the Storage Account.

» Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Storage Account.