FEATURES PRICING ABOUT DOCS LOGIN

azurerm_storage_account

Create an Azure Storage Account.

Example Usage

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

resource "azurerm_storage_account" "testsa" {
    name = "storageaccountname"
    resource_group_name = "${azurerm_resource_group.testrg.name}"

    location = "westus"
    account_type = "Standard_GRS"

    tags {
        environment = "staging"
    }
}

Argument Reference

The following arguments are supported:

Note that although the Azure API supports setting custom domain names for storage accounts, this is not currently 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 azurerm_storage_account.storageAcc1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount

See the source of this document at Terraform.io

REQUEST A DEMO