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-AzureSiteRecoveryProtectionEntity

Get-AzureSiteRecoveryProtectionEntity

microsoft.azure.commands.recoveryservices.dll

Synopsis

The Get-AzureSiteRecoveryProtectionEntity cmdlet gets protected objects in Microsoft Azure Site Recovery, such as virtual machines.

Syntax

Get-AzureSiteRecoveryProtectionEntity [-ProtectionContainerId] [<CommonParameters>]

Get-AzureSiteRecoveryProtectionEntity [-Id] [-ProtectionContainerId] [<CommonParameters>]

Get-AzureSiteRecoveryProtectionEntity [-Name] [-ProtectionContainerId] [<CommonParameters>]

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

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

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

Detailed Description

Get the list of Protection Entities like "VMs" . A Protection Entity is an object which can be protected using Azure site Recovery

Parameters

-Id <string>

Specifies the ID of a protection entity to get.

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Name <string>

Name of the Protection Entity

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

-ProtectionContainerId <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

-----------

$PC = Get-AzureSiteRecoveryProtectionContainer; Get-AzureSiteRecoveryProtectionEntity -ProtectionContainer $PC

ID                           : 43aaab46-1cb0-4c39-8077-9a091c3b05ce
ServerId                     : 4a94c4a9-c856-4577-afbd-367fe9b3ce9c
ProtectionContainerId        : 4a94c4a9-c856-4577-afbd-367fe9b3ce9c_1c513d45-645d-4ed0-b9ae-e7b869a1f7fc
Name                         : testvm
Type                         : VirtualMachine
FabricObjectId               : 506B3CAC-5758-49E2-98C4-E5B0512E4D8E
Protected                    : False
CanCommit                    : False
CanFailover                  : False
CanReverseReplicate          : False
ActiveLocation               : Primary
ProtectionStateDescription   : Enabling protection
ReplicationHealth            :
TestFailoverStateDescription : None
ReplicationProvider          : HyperVReplica