azurerm_recovery_services_vault

Create an Recovery Services Vault.

Example Usage

resource "azurerm_resource_group" "rg" {
  name     = "tfex-recovery_vault"
  location = "West US"
}

resource "azurerm_recovery_services_vault" "vault" {
    name                = "example_recovery_vault"
    location            = "${azurerm_resource_group.rg.location}"
    resource_group_name = "${azurerm_resource_group.rg.name}"
    sku                 = "standard"
}

Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the Recovery Services Vault. Changing this forces a new resource to be created.

  • resource_group_name - (Required) The name of the resource group in which to create the Recovery Services Vault. Changing this forces a new resource to be created.

  • location - (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • tags - (Optional) A mapping of tags to assign to the resource.

  • sku - (Required) Sets the vault's SKU. Possible values include: Standard, RS0.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Recovery Services Vault.

Import

Recovery Services Vaults can be imported using the resource id, e.g.

terraform import azurerm_recovery_services_vault.vault1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.RecoveryServices/vaults/vault1

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/r/recovery_services_vault.html