Azure Site Recovery Get List of Protected VM's Using PowerShell

rr-4098 986 Reputation points

I am trying to get a list of all protected VM's in ASR. When I try to run any of the Get commands listed in the article below, it asks for a Protection Container which I do not see in the portal. Thoughts?

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

Accepted answer
  1. SadiqhAhmed-MSFT 35,251 Reputation points Microsoft Employee

    @rr-4098 Please follow this article - 

    $PrimaryProtContainer = Get-AzRecoveryServicesAsrProtectionContainer -Fabric $PrimaryFabric -Name "A2AEastUSProtectionContainer"

    $PrimaryFabric = Get-AzRecoveryServicesAsrFabric -Name "A2Ademo-EastUS"

    Let us know how it goes!

    If the response helped, do "Accept Answer" and up-vote it

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful