Forum Discussion

Dave Thomas's avatar
Dave Thomas
Copper Contributor
Nov 27, 2017

Cannot delete Server from Recovery Services

I'm trying to delete a server from a Recovery Vault that no longer exists.  When I put in the server name to delete the exclamation point still stays there.  I'm attaching a screen shot of what I'm seeing.  The main reason I'm doing this is to get rid of an email I get from MS to upgrade the version of Microsoft Azure Backup.  Is there a powershell option to this ?

 

Thank you,

Dave Thomas

2 Replies

  • Do not run the following with out testing and modifying the result of targetVM
    $vault = Get-AzureRmRecoveryServicesVault
    Set-AzureRmRecoveryServicesVaultContext -Vault $vault
    $container = get-AzureRmRecoveryServicesBackupContainer -ContainerType AzureVM
    $targetvm = Get-AzureRmRecoveryServicesBackupItem -Container $container -WorkloadType AzureVM
    Disable-AzureRmRecoveryServicesBackupProtection -Item $targetvm -RemoveRecoveryPoints -force


     

    The result will look like this

     

     

  • i spun up a vm that i will try and add to my recovery service so i can insure i find the correct powershell needed.

     

    But have you tried copying the name from UI and pasting it ?

Resources