Delete a Microsoft Azure Recovery Services vault - Azure Backup (original) (raw)

This article describes how to delete an Azure Backup Recovery Services vault. It contains instructions for removing dependencies and then deleting a vault.

You can't delete a Recovery Services vault with any of the following dependencies:

If you try to delete the vault without removing the dependencies, you'll encounter one of the following error messages:

Warning

The following operation is destructive and can't be undone. All backup data and backup items associated with the protected server will be permanently deleted. Proceed with caution.

Note

If you're sure that all backed-up items in the vault are no longer required and want to delete them at once without reviewing, run this PowerShell script. The script will delete all backup items recursively and eventually the entire vault.

To delete a vault, follow these steps:

Delete protected items in the cloud

First, read the Before you start section to understand the dependencies and vault deletion process.

To stop protection and delete the backup data, perform the following steps:

  1. From the portal, go to Recovery Services vault, and then go to Backup items. Then, in the Backup Management Type list, select the protected items in the cloud (for example, Azure Virtual Machines, Azure Storage (the Azure Files), or SQL Server on Azure Virtual Machines).
    Screenshot showing to select the backup type.
  2. You'll see a list of all the items for the category. Right-click to select the backup item. Depending on whether the backup item is protected or not, the menu displays either the Stop Backup pane or the Delete Backup Data pane.
    • If the Stop Backup pane appears, select Delete Backup Data from the drop-down menu. Enter the name of the backup item (this field is case-sensitive), and then select a reason from the drop-down menu. Enter your comments, if you've any. Then, select Stop backup.
      Screenshot showing the Stop Backup pane.
    • If the Delete Backup Data pane appears, enter the name of the backup item (this field is case-sensitive), and then select a reason from the drop-down menu. Enter your comments, if you've any. Then, select Delete.
      Screenshot showing the Delete Backup Data pane.
      This option deletes scheduled backups, also deletes on-demand backups.
  3. Check the Notification icon: The Notification icon. After the process finishes, the service displays the following message: Stopping backup and deleting backup data for "Backup Item". Successfully completed the operation.
  4. Select Refresh on the Backup Items menu, to make sure the backup item was deleted.
    Screenshot of the Delete Backup Items page.

Delete protected items on premises

First, read the Before you start section to understand the dependencies and vault deletion process.

  1. From the vault dashboard menu, select Backup Infrastructure.
  2. Depending on your on-premises scenario, choose the one of the following options:
    • For MARS, select Protected Servers and then Azure Backup Agent. Then, select the server that you want to delete.
      For MARS, select your vault to open its dashboard.
    • For MABS or DPM, select Backup Management Servers. Then, select the server that you want to delete.
      For MABS or DPM, select your vault to open its dashboard.
  3. The Delete pane appears with a warning message.
    The delete pane.
    Review the warning message and the instructions in the consent check box.
    Note
    • If the protected server is synced with Azure services and backup items exist, the consent check box will display the number of dependent backup items and the link to view the backup items.
    • If the protected server isn't synced with Azure services and backup items exist, the consent check box will display only the number of backup items.
    • If there're no backup items, the consent check box will ask for deletion.
  4. Select the consent check box, and then select Delete.
  5. Check the Notification icon delete backup data. After the operation finishes, the service displays the message: Stopping backup and deleting backup data for "Backup Item." Successfully completed the operation.
  6. Select Refresh on the Backup Items menu, to make sure the backup item is deleted.

Note

If you delete an on-premises protected item from a portal that contains dependencies, you'll receive a warning saying "Deleting server's registration is a destructive operation and cannot be undone. All backup data (recovery points required to restore the data) and Backup items associated with protected server will be permanently deleted."

After this process finishes, you can delete the backup items from management console:

Delete backup items from the MARS management console

Note

If you deleted or lost the source machine without stopping the backup, the next scheduled backup will fail. The old recovery point expires according to the policy, but the last single recovery point is always retained until you stop the backup and delete the data. You can do this by following the steps in this section.

  1. Open the MARS management console, go to the Actions pane, and select Schedule Backup.
  2. From the Modify or Stop a Scheduled Backup page, select Stop using this backup schedule and delete all the stored backups. Then, select Next.
    Modify or stop a scheduled backup.
  3. From the Stop a Scheduled Backup page, select Finish.
    Stop a scheduled backup.
  4. You're prompted to enter a security PIN (personal identification number), which you must generate manually. To do this, first sign in to the Azure portal.
  5. Go to Recovery Services vault > Settings > Properties.
  6. Under Security PIN, select Generate. Copy this PIN. The PIN is valid for only five minutes.
  7. In the management console, paste the PIN, and then select OK.
    Generate a security PIN.
  8. In the Modify Backup Progress page, the following message appears: Deleted backup data will be retained for 14 days. After that time, backup data will be permanently deleted.
    Delete the backup infrastructure.

After you delete the on-premises backup items, follow the next steps from the portal.

Delete backup items from the MABS or DPM management console

Note

If you deleted or lost the source machine without stopping the backup, the next scheduled backup will fail. The old recovery point expires according to the policy, but the last single recovery point is always retained until you stop the backup and delete the data. You can do this by following the steps in this section.

There are two methods you can use to delete backup items from the MABS or DPM management console.

Method 1

To stop protection and delete backup data, do the following steps:

  1. Open the DPM Administrator Console, and then select Protection on the navigation bar.
  2. In the display pane, select the protection group member that you want to remove. Right-click to select the Stop Protection of Group Members option.
  3. From the Stop Protection dialog box, select Delete protected data, and then select the Delete storage online check box. Then, select Stop Protection.
    Select Delete protected data from the Stop Protection pane.
    For the following versions, you're prompted to enter a security PIN (personal identification number), which you must generate manually.
    • DPM 2019 UR1 and later
    • DPM 2016 UR9 and later
    • MABS V3 UR1 and later
      To generate the PIN, do the following steps:
    1. Sign in to the Azure portal.
    2. Go to Recovery Services vault > Settings > Properties.
    3. Under Security PIN, select Generate.
    4. Copy this PIN.
      Note
      The PIN is valid for only five minutes.
    5. In the management console, paste the PIN, and then select Submit.Enter security PIN to delete backup items from the MABS and DPM management console
  4. If you had selected Delete storage online in the Stop Protection dialog box earlier, ignore this step. Right-click the inactive protection group and select Remove inactive protection.
    Remove inactive protection.
  5. From the Delete Inactive Protection window, select the Delete online storage check box, and then select OK.
    Delete online storage.
    For the following versions, you're prompted to enter a security PIN (personal identification number), which you must generate manually.
    • DPM 2019 UR1 and later
    • DPM 2016 UR9 and later
    • MABS V3 UR1 and later
      To generate the PIN, do the following steps:
    1. Sign in to the Azure portal.
    2. Go to Recovery Services vault > Settings > Properties.
    3. Under Security PIN, select Generate.
    4. Copy this PIN.
      Note
      The PIN is valid for only five minutes.
    5. In the management console, paste the PIN, and then select Submit.Enter security PIN to delete backup items from the MABS and DPM management console
      The protected member status changes to Inactive replica available.

Method 2

Open the MABS management or DPM management console. Under Select data protection method, clear the I want online protection check box.

Select the data protection method.

After you delete the on-premises backup items, follow the next steps from the portal.

Delete the Recovery Services vault

  1. When all dependencies have been removed, scroll to the Essentials pane in the vault menu.
  2. Verify that there aren't any backup items, backup management servers, or replicated items listed. If items still appear in the vault, refer to the Before you start section.
  3. When there are no more items in the vault, select Delete on the vault dashboard.
    Select Delete on the vault dashboard.
  4. Select Yes to verify that you want to delete the vault. The vault is deleted. The portal returns to the New service menu.