< Back

Get-AzureRmRecoveryServicesAsrReplicationProtectedItem

Tue Jan 29, 2019 10:02 pm

NAME Get-AzureRmRecoveryServicesAsrReplicationProtectedItem



SYNOPSIS

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





SYNTAX

Get-AzureRmRecoveryServicesAsrReplicationProtectedItem [-DefaultProfile <IAzureContextContainer>] -FriendlyName <String> -ProtectionContainer

<ASRProtectionContainer> [<CommonParameters>]



Get-AzureRmRecoveryServicesAsrReplicationProtectedItem [-DefaultProfile <IAzureContextContainer>] -Name <String> -ProtectionContainer

<ASRProtectionContainer> [<CommonParameters>]



Get-AzureRmRecoveryServicesAsrReplicationProtectedItem [-DefaultProfile <IAzureContextContainer>] -ProtectableItem <ASRProtectableItem>

[<CommonParameters>]



Get-AzureRmRecoveryServicesAsrReplicationProtectedItem [-DefaultProfile <IAzureContextContainer>] -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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-FriendlyName <String>

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



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the replication protected item to get.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ProtectableItem <ASRProtectableItem>

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.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-ProtectionContainer <ASRProtectionContainer>

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



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



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







NOTES









Example 1



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



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







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... tecteditem

New-AzureRmRecoveryServicesAsrReplicationProtectedItem

Remove-AzureRmRecoveryServicesAsrReplicationProtectedItem

Set-AzureRmRecoveryServicesAsrReplicationProtectedItem