Edit

Share via


Get-AzRecoveryServicesAsrReplicationProtectionCluster

Gets a replication protection cluster or all the replication protection clusters in a protection container or all the replication protection clusters in the Recovery Services vault

Syntax

Default (Default)

Get-AzRecoveryServicesAsrReplicationProtectionCluster
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByObjectWithName

Get-AzRecoveryServicesAsrReplicationProtectionCluster
    -Name <String>
    -ProtectionContainer <ASRProtectionContainer>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByObject

Get-AzRecoveryServicesAsrReplicationProtectionCluster
    -ProtectionContainer <ASRProtectionContainer>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Get-AzRecoveryServicesAsrReplicationProtectionCluster cmdlet gets the details of the specified replication protection cluster or all the replication protection clusters in a protection container or all the replication protection clusters in the Recovery Services vault.

Examples

Example 1

Get-AzRecoveryServicesAsrReplicationProtectionCluster -Name $ClusterName -ProtectionContainer $ProtectionContainer

Gets the replication protection cluster with the specified name.

Example 2

Get-AzRecoveryServicesAsrReplicationProtectionCluster -ProtectionContainer $ProtectionContainer

Gets the replication protection cluster in a protection container.

Parameters

-DefaultProfile

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

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the replication protection cluster to get.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByObjectWithName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ProtectionContainer

Specifies the Azure Site Recovery protection container object.

Parameter properties

Type:ASRProtectionContainer
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByObjectWithName
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False
ByObject
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

ASRProtectionContainer

Outputs

ASRReplicationProtectionCluster