» 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 - (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

» ~> 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.