Start-AzRecoveryServicesAsrApplyClusterRecoveryPoint
在提交故障转移作之前更改故障转移的复制保护群集的恢复点
语法
Default (默认值)
Start-AzRecoveryServicesAsrApplyClusterRecoveryPoint
[-ClusterRecoveryPoint <ASRClusterRecoveryPoint>]
-ReplicationProtectionCluster <ASRReplicationProtectionCluster>
[-ListNodeRecoveryPoint <System.Collections.Generic.List`1[System.String]>]
[-LatestProcessedRecoveryPoint]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Start-AzRecoveryServicesAsrApplyClusterRecoveryPoint 在提交故障转移作之前更改已故障转移受保护项的恢复点。
可以使用 Get-AzRecoveryServicesAsrJob cmdlet 检查作业是否成功。
示例
示例 1
$currentJob = Start-AzRecoveryServicesAsrApplyClusterRecoveryPoint -ReplicationProtectionCluster $protectionCluster -LatestProcessedRecoveryPoint
开始在指定的群集上应用恢复点。 如果传递 LatestProcessedRecoveryPoint 且未提供任何特定的恢复点,它将选取处理的最新恢复点,并返回用于跟踪作的 ASR 作业。
示例 2
$currentJob = Start-AzRecoveryServicesAsrApplyClusterRecoveryPoint -ReplicationProtectionCluster $protectionCluster -ClusterRecoveryPoint $clusterRecoveryPoint -ListNodeRecoveryPoint $nodeRecoveryPoints
开始在指定的群集上应用恢复点,并通过传递 ClusterRecoveryPoint 和 NodeRecoveryPoints,它将选取指定的恢复点并返回用于跟踪作的 ASR 作业。
参数
-ClusterRecoveryPoint
指定群集的恢复点。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-LatestProcessedRecoveryPoint
如果未为群集或任何单个节点传递,则提取最新处理的恢复点。
参数属性
| 类型: | SwitchParameter
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | LatestProcessedRecoveryPoint |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ListNodeRecoveryPoint
指定不属于群集恢复点的节点的恢复点。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ReplicationProtectionCluster
指定复制保护群集。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。
命令脚本未运行。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
输出