azurerm_site_recovery_vmware_replication_policy

Manages a VMWare Replication Policy.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "example-rg"
  location = "eastus"
}

resource "azurerm_recovery_services_vault" "example" {
  name                               = "example-vault"
  location                           = azurerm_resource_group.example.location
  resource_group_name                = azurerm_resource_group.example.name
  sku                                = "Standard"
  classic_vmware_replication_enabled = true

  soft_delete_enabled = false
}

resource "azurerm_site_recovery_vmware_replication_policy" "example" {
  name                                                 = "example-policy"
  recovery_vault_id                                    = azurerm_recovery_services_vault.example.id
  recovery_point_retention_in_minutes                  = 1440
  application_consistent_snapshot_frequency_in_minutes = 240
}

Arguments Reference

The following arguments are supported:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

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

Import

VMWare Replication Policy can be imported using the resource id, e.g.

terraform import azurerm_site_recovery_vmware_replication_policy.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/vault1/providers/Microsoft.RecoveryServices/vaults/vault1/replicationPolicies/policy1