azurestack_storage_account

Manages an Azure Storage Account.

Example Usage

resource "azurestack_resource_group" "testrg" {
  name     = "resourceGroupName"
  location = "westus"
}

resource "azurestack_storage_account" "testsa" {
  name                     = "storageaccountname"
  resource_group_name      = azurestack_resource_group.testrg.name
  location                 = "westus"
  account_tier             = "Standard"
  account_replication_type = "LRS"

  tags = {
    environment = "staging"
  }
}

Argument Reference

The following arguments are supported:


Attributes Reference

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

Import

Storage Accounts can be imported using the resource id, e.g.

terraform import azurestack_storage_account.storageAcc1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount