Get-AzRecoveryServicesAsrReplicationProtectedItem

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

Note

This is the previous version of our documentation. Please consult the most recent version for up-to-date information.

Syntax

Get-AzRecoveryServicesAsrReplicationProtectedItem
   -ProtectionContainer <ASRProtectionContainer>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzRecoveryServicesAsrReplicationProtectedItem
   -Name <String>
   -ProtectionContainer <ASRProtectionContainer>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzRecoveryServicesAsrReplicationProtectedItem
   -FriendlyName <String>
   -ProtectionContainer <ASRProtectionContainer>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzRecoveryServicesAsrReplicationProtectedItem
   -ProtectableItem <ASRProtectableItem>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

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

Examples

Example 1

$ReplicationProtectedItems = Get-AzRecoveryServicesAsrReplicationProtectedItem -ProtectionContainer $PrimaryContainer

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

Example 2

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

Get-AzRecoveryServicesAsrReplicationProtectedItem -FriendlyName XXXXXXXXXX -ProtectionContainer $PrimaryContainer

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
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
Accept wildcard characters:False

Inputs

ASRProtectionContainer

ASRProtectableItem

Outputs

ASRReplicationProtectedItem