» Data Source: azurerm_recovery_services_protection_policy_vm

Use this data source to access information about an existing Recovery Services VM Protection Policy.

» Example Usage

data "azurerm_recovery_services_protection_policy_vm" "policy" {
  name                = "policy"
  recovery_vault_name = "recovery_vault"
  resource_group_name = "resource_group"
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Specifies the name of the Recovery Services VM Protection Policy.

  • recovery_vault_name - (Required) Specifies the name of the Recovery Services Vault.

  • resource_group_name - (Required) The name of the resource group in which the Recovery Services VM Protection Policy resides.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the Recovery Services VM Protection Policy.

  • tags - A mapping of tags assigned to the resource.