Nov 27 2017
- last edited on
Jul 31 2018
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 ?
Nov 27 2017 02:16 PM
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 ?
Nov 28 2017 12:17 AM - edited Nov 28 2017 12:32 AM
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