次の方法で共有


Get-AzRecoveryServicesAsrReplicationProtectionCluster

レプリケーション保護クラスター、または保護コンテナー内のすべてのレプリケーション保護クラスター、または Recovery Services コンテナー内のすべてのレプリケーション保護クラスターを取得します

構文

Default (既定)

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

ByObjectWithName

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

ByObject

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

説明

Get-AzRecoveryServicesAsrReplicationProtectionCluster コマンドレットは、指定されたレプリケーション保護クラスター、または保護コンテナー内のすべてのレプリケーション保護クラスター、または Recovery Services コンテナー内のすべてのレプリケーション保護クラスターの詳細を取得します。

例 1

Get-AzRecoveryServicesAsrReplicationProtectionCluster -Name $ClusterName -ProtectionContainer $ProtectionContainer

指定した名前のレプリケーション保護クラスターを取得します。

例 2

Get-AzRecoveryServicesAsrReplicationProtectionCluster -ProtectionContainer $ProtectionContainer

保護コンテナー内のレプリケーション保護クラスターを取得します。

パラメーター

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

パラメーターのプロパティ

型:IAzureContextContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Name

取得するレプリケーション保護クラスターの名前を指定します。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

ByObjectWithName
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-ProtectionContainer

Azure Site Recovery 保護コンテナー オブジェクトを指定します。

パラメーターのプロパティ

型:ASRProtectionContainer
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

ByObjectWithName
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
ByObject
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。

入力

ASRProtectionContainer

出力

ASRReplicationProtectionCluster