Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureSiteRecoveryVM

Get-AzureSiteRecoveryVM

microsoft.azure.commands.recoveryservices.dll

Synopsis

Get information about Virtual Machines managed in Azure Site Recovery

Syntax

Get-AzureSiteRecoveryVM [-ProtectionContainer] [<CommonParameters>]

Get-AzureSiteRecoveryVM [-Id] [-ProtectionContainer] [<CommonParameters>]

Get-AzureSiteRecoveryVM [-Name] [-ProtectionContainer] [<CommonParameters>]

Get-AzureSiteRecoveryVM [-ProtectionContianerId] [<CommonParameters>]

Get-AzureSiteRecoveryVM [-Id] [-ProtectionContianerId] [<CommonParameters>]

Get-AzureSiteRecoveryVM [-Name] [-ProtectionContianerId] [<CommonParameters>]

Detailed Description

Get information about Virtual Machines managed in Azure site Recovery

Parameters

-Id <string>

Id of the Virtual Machine

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Name <string>

Name of the Virtual Machine

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-ProtectionContainer <ASRProtectionContainer>

Protection Container object

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

-ProtectionContianerId <string>

ID of the Protection Container

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

C:\PS>

Description

-----------

          $protectionContainer = Get-AzureSiteRecoveryProtectionContainer; Get-AzureSiteRecoveryVM -ProtectionContainer $protectionContainer

          ID                          : a205fd17-3848-4896-bab6-9dbccc3cd8ed
          ServerId                    : 4a94c4a9-c856-4577-afbd-367fe9b3ce9c
          ProtectionContainerId       : 4a94c4a9-c856-4577-afbd-367fe9b3ce9c_1c513d45-645d-4ed0-b9ae-e7b869a1f7fc
          Name                        : vm1
          Type                        : VirtualMachine
          FabricObjectId              : 86447b9e-d877-4e9a-8302-adcd6bbf18c0
          Protected                   : False
          CanCommit                   : False
          CanFailover                 : True
          CanReverseReplicate         : False
          ActiveLocation              : Primary
          ProtectionState             : Enabled
          ReplicationHealth           : Healthy
          TestFailoverState           : None
          ReplicationProvider         : HyperVReplica