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

Recent Articles

How to configure restriction for Users from creation of Office 365 groups, Plans & Microsoft teams.

Connect-AzureAD Create new Security Group "AllowedtoCreateGroups" Get-AzureADGroup -SearchString "AllowedtoCreateGroups" $GroupName = "<SecurityGroupName>" $AllowGroupCreation = "False" Connect-AzureAD $settingsObjectID = (Get-AzureADDirectorySetting | Where-object -Property Displayname -Value "Group.Unified" -EQ).id if(!$settingsObjectID) { $template = Get-AzureADDirectorySettingTemplate | Where-object...

Attack Simulator for Office 365

Microsoft has released Attack Simulator (currently in Preview) to allow Office 365 Global Administrators to simulate phishing campaigns and other attack simulations. Prerequisites ·       Your organization’s email...

What is Advanced Threat Analytics?

Advanced Threat Analytics (ATA) is an on-premises platform that helps protect your enterprise from multiple types of advanced targeted cyber-attacks and insider threats. How ATA...

How to remove Office 365 Groups permanently ?

  Hi Guys, Here is process how to remove office 365 groups or soft deleted groups from your office 365 tenant. Step-1 you need to connect with Azure...

How to solve the issue of guest users access in Office 365 when you applied restriction on office 365 groups creation tenant wide?

Connect-AzureAD via powerShell Run the following command: $template = Get-AzureADDirectorySettingTemplate | ? {$_.displayname -eq "group.unified"} See if you already have an AzureADDirectorySetting object,...

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here

Stay on op - Ge the daily news in your inbox