Use this data source to access information about an existing VM Backup Policy.
data "azurerm_backup_policy_vm" "policy" {
name = "policy"
recovery_vault_name = "recovery_vault"
resource_group_name = "resource_group"
}
The following arguments are supported:
name
- Specifies the name of the VM Backup Policy.
recovery_vault_name
- Specifies the name of the Recovery Services Vault.
resource_group_name
- The name of the resource group in which the VM Backup Policy resides.
The following attributes are exported:
id
- The ID of the Backup VM Protection Policy.The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Recovery Services VM Protection Policy.