Start-AzRecoveryServicesAsrClusterCommitFailoverJob

启动复制保护群集的提交故障转移作。

语法

Start-AzRecoveryServicesAsrClusterCommitFailoverJob
     -ReplicationProtectionCluster <ASRReplicationProtectionCluster>
     [-DefaultProfile <IAzureContextContainer>]
     [-WhatIf]
     [-Confirm]
     [<CommonParameters>]

说明

Start-AzRecoveryServicesAsrClusterCommitFailoverJob cmdlet 在故障转移作后启动 Azure Site Recovery 对象的提交故障转移过程。 可以使用 Get-AzRecoveryServicesAsrJob cmdlet 检查作业是否成功。

示例

示例 1

$CommitFailoverJob = Start-AzRecoveryServicesAsrClusterCommitFailoverJob -ReplicationProtectionCluster $protectionCluster

为指定的复制保护群集启动提交故障转移,并返回用于跟踪作的 ASR 作业。

参数

-Confirm

在运行 cmdlet 之前,提示你进行确认。

类型:SwitchParameter
别名:cf
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-DefaultProfile

用于与 Azure 通信的凭据、帐户、租户和订阅。

类型:IAzureContextContainer
别名:AzContext, AzureRmContext, AzureCredential
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-ReplicationProtectionCluster

指定复制保护群集。

类型:ASRReplicationProtectionCluster
Position:Named
默认值:None
必需:True
接受管道输入:True
接受通配符:False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

类型:SwitchParameter
别名:wi
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

输入

ASRReplicationProtectionCluster

输出

ASRJob