Unregisters a SCDPM server or Backup server from the vault.


          [-AzureRmBackupManagementServer] <BackupEngineBase>


The Unregister-AzureRmRecoveryServicesBackupManagementServer cmdlet unregisters a System Center Data Protection Manager (SCDPM) server or an Azure Backup server from the vault. This cmdlet removes references to the servers that are unregistered from the vault.

Before you can unregister a container, you must delete any protected data associated with that container.

Set the vault context by using the Set-AzureRmRecoveryServicesVaultContext cmdlet before you use the current cmdlet.


Example 1: Unregister an SCDPM server from the vault

PS C:\>$BMS = Get-AzureRmRecoveryServicesBackupManagementServer -Name "dpmserver01.contoso.com"
PS C:\> Unregister-AzureRmRecoveryServicesBackupManagementServer -AzureRmBackupManagementServer $BMS

The first command gets the Backup management server named dpmserver01.contoso.com, and then stores it in the $BMS variable.

The second command unregisters the SCDPM server from the vault.

Required Parameters


Specifies an SCDPM server object to unregister. To obtain an BackupManagementServer object, use the Get-AzureRmRecoveryServicesBackupManagementServer cmdlet.

Default value:None
Accept pipeline input:False
Accept wildcard characters:False