Support for retain vm backup when deleting azurerm_backup_protected_vm resource #20571
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Community Note
Description
The resource "azurerm_backup_protected_vm" has the option to enable backup on VM, but when destroying the infrastructure the backup is also deleted.
It would be great to have a property to retain the backup when deleting the resource "azurerm_backup_protected_vm".
This is different from deleting a backup for a VM in a vault protected with soft delete, since soft delete keeps the existing backups only for 14 days, not according to the existing vault policy.
New or Affected Resource(s)/Data Source(s)
azurerm_backup_protected_vm
Potential Terraform Configuration
References
Azure Backup provides you the flexibility to stop protecting and manage your backups:
Stop protection and retain backup data. If you're retiring or decommissioning your data source (VM, application), but need to retain data for audit or compliance purposes, then you can use this option to stop all future backup jobs from protecting your data source and retain the recovery points that have been backed up. You can then restore or resume VM protection.
Stop protection and delete backup data. This option will stop all future backup jobs from protecting your VM and delete all the recovery points. You won't be able to restore the VM nor use Resume backup option.
The text was updated successfully, but these errors were encountered: