Assistance with removing Azure Site Recovery

LHITAdmin 1 Reputation point
2022-05-09T22:48:24.167+00:00

I was testing out Azure Site Recovery and now am not going to be going that route at this time.

Following this document, https://learn.microsoft.com/en-us/azure/site-recovery/site-recovery-manage-registration-and-protection I am not getting anywhere.

Following this document to delete the configuration server, I am not getting anywhere either as I am in preview mode vs classic mode. https://learn.microsoft.com/en-us/azure/site-recovery/vmware-azure-manage-configuration-server#delete-or-unregister-a-configuration-server

I have attempted with PowerShell as well from the second link here. The commands have changed and I have been able to get around that part of it however, I get this error in powershell

Import-AzRecoveryServicesAsrVaultSettingsFile : Operation failed.
Vault settings file not found, please pass the file downloaded from portal

Any assistance would be great.

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
636 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LHITAdmin 1 Reputation point
    2022-05-10T17:13:14.927+00:00

    I have resolved

    Connect-AzAccount

    Get-AzSubscription –SubscriptionName LH-CLoud-DR-Subscription | Select-AzSubscription

    $vault = Get-AzRecoveryServicesVault -Name LHUSWest2RecoveryVault

    Set-AzRecoveryServicesAsrVaultContext -Vault $vault

    $BMS = Get-AzRecoveryServicesBackupManagementServer -Name "myserver.domain.com"
    Unregister-AzRecoveryServicesBackupManagementServer -AzureRmBackupManagementServer $BMS

    Plus going through UI and selecting the Vault and proceeding to go through the steps to delete the vault.