IT Blog

Identity & Access Management

How to delete Azure Recovery Vault Services ?

How to delete Azure Recovery Vault Services ?

 

 

To delete a Recovery Services vault:

// phase 1

  1. Sign in to your Azure account.
  2. Sign in to your Azure subscription with the Connect-AzureRmAccount command and follow the on-screen directions.
  3. PowerShell Copy
  4.  Connect-AzureRmAccount
  5. The first time you use Azure Backup, you must register the Azure Recovery Service provider in your subscription with Register-AzureRmResourceProvider.
  6.  Register-AzureRmResourceProvider -ProviderNamespace “Microsoft.RecoveryServices”

/// phase2

Get Information of Recovery Service.

Get-AzureRmRecoveryServicesVault

//Phase 3

Unregister Server from backup

$Cont = Get-AzureRmRecoveryServicesBackupContainer -ContainerType “Windows” -BackupManagementType MARS -Name “win-bjbrvac12rh.”

 

Unregister-AzureRmRecoveryServicesBackupContainer -Container $Cont

 

  1. Open a PowerShell window with Administrator privileges.
  2. Use Set-ExecutionPolicy Unrestricted to remove any restrictions.
  3. Run the following command to download the Azure Resource Manager Client package from chocolately.org.
  4. iex ((New-Object System.Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1’))
  5. Use the following command to install the Azure Resource Manager API Client.
  6. choco.exe install armclient
  7. In the Azure portal, gather the Subscription ID and associated resource group name for the Recovery Services vault you want to delete.
  8. In PowerShell, run the following command using your subscription ID, resource group name, and Recovery Services vault name. When you run the command, it deletes the vault and all dependencies.

ARMClient.exe delete /subscriptions/<subscriptionID>/resourceGroups/<resourcegroupname>/providers/Microsoft.RecoveryServices/vaults/<recovery services vault name>?api-version=2015-03-15

 

 

Link: https://docs.microsoft.com/en-us/azure/backup/backup-azure-delete-vault

Leave a Reply

Your email address will not be published. Required fields are marked *