Forum Discussion
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
- Kent GaardmandIron Contributor
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 -forceThe result will look like this
- Kent GaardmandIron Contributor
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 ?