Get-​Azure​Rm​Recovery​Services​Asr​Replication​Protected​Item

Gets the properties of an Azure Site Recovery Replication Protected Items.

Syntax

Get-AzureRmRecoveryServicesAsrReplicationProtectedItem
   -FriendlyName <String>
   -ProtectionContainer <ASRProtectionContainer>
   [<CommonParameters>]
Get-AzureRmRecoveryServicesAsrReplicationProtectedItem
   -Name <String>
   -ProtectionContainer <ASRProtectionContainer>
   [<CommonParameters>]
Get-AzureRmRecoveryServicesAsrReplicationProtectedItem
   -ProtectableItem <ASRProtectableItem>
   [<CommonParameters>]
Get-AzureRmRecoveryServicesAsrReplicationProtectedItem
   -ProtectionContainer <ASRProtectionContainer>
   [<CommonParameters>]

Description

The Get-AzureRmRecoveryServicesAsrReplicationProtectedItem cmdlet gets the properties of all or the specified ASR replication protected item from the specified ASR protection container.

Examples

Example 1

PS C:\> $ReplicationProtectedItems = Get-AzureRmRecoveryServicesAsrReplicationProtectedItem -ProtectionContainer $PrimaryContainer

Lists all replication protected items in the specified ASR protection container.

Required Parameters

-FriendlyName

Specifies the friendly name of the replication protected item to get.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the replication protected item to get.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProtectableItem

Specifies an ASR protectable item object. The cmdlet gets the ASR replication protected item corresponding to the specified ASR protectable item if the item is protected.

Type:ASRProtectableItem
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ProtectionContainer

Specifies the ASR protection container object of the ASR protection container corresponding to the replication protected item.

Type:ASRProtectionContainer
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainer

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectableItem

Outputs

System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRReplicationProtectedItem, Microsoft.Azure.Commands.RecoveryServices.SiteRecovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]]