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
Get-AzRecoveryServicesAsrReplicationProtectionCluster
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrReplicationProtectionCluster
-Name <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
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.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the name of the replication protection cluster to get.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProtectionContainer
Specifies the Azure Site Recovery protection container object.
Type: | ASRProtectionContainer |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |