Start-VBRCDPReplicaFailover
Short Description
Starts to perform failover to VM replicas.
Applies to
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides cmdlet sets that allow you to:
- Start to perform failover to a specific restore point of VM replicas.
Start-VBRCDPReplicaFailover -Replica <VBRCDPReplica> [-ToPointInTime <datetime>] [-Reason <string>] [-Commit] [-PowerOn] [-Force] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>] |
- Start to perform failover to a specific long-term restore point of VM replicas.
Start-VBRCDPReplicaFailover -Replica <VBRCDPReplica> -LongTermRestorePoint <VBRCDPLongTermRestorePoint> [-Reason <string>] [-Commit] [-PowerOn] [-Force] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>] |
- Start to perform planned failover.
Start-VBRCDPReplicaFailover -Replica <VBRCDPReplica> [-Planned] [-Reason <String>] [-Commit] [-PowerOn] [-Force] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>] |
Detailed Description
This cmdlet starts to perform failover to VM replicas.
Important |
Before you start to perform failover to VM replicas we recommend to the run the Get-VBRCDPShortTermRestoreInterval cmdlet to get a list of all replicated states that are available for VM replicas. This allows you to verify that you will not perform failover to replicated states of VM replicas that do not exist. |
Parameters
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|---|---|---|---|---|
Replica | Specifies a VM protected with CDP to which you want to perform failover. | Accepts the VBRCDPReplica object. To create this object, run the Get-VBRCDPReplica cmdlet. | True | Named | True (ByValue, ByPropertyName) |
ToPointInTime | Specifies a replicated state that is available for a VM protected with CDP. | DateTime | False | Named | False |
LongTermRestorePoint | Specifies a long-term restore point of a VM protected with CDP. The cmdlet will perform failover to this restore point. | Accepts the VBRCDPLongTermRestorePoint object. To get this object, run the Get-VBRCDPLongTermRestorePoint cmdlet. | False | Named | False |
Planned | Defines that the cmdlet will perform planned failover. | SwitchParameter | False | Named | False |
Reason | Specifies the reason for performing failover. | String | False | Named | False |
Commit | Defines that the cmdlet will perform permanent failover of the specified replicas in the failover state.
| SwitchParameter | False | Named | False |
PowerOn | Defines that the cmdlet will power on a CDP replica after performing failover. If you do not provide this parameter, the cmdlet will power on the replica. If you do not want to power on the replica, set the parameter to the PowerOn:$false value. Default: True. Note: If you provide this parameter with the Commit parameter, the cmdlet will always start a replica. | SwitchParameter | False | Named | False |
Force | Defines that the cmdlet will perform a failover without showing warnings in the PowerShell console. | SwitchParameter | False | Named | False |
RunAsync | Defines that the command returns immediately without waiting for the task to complete. | SwitchParameter | False | Named | False |
WhatIf | Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action. | SwitchParameter | False | Named | False |
Confirm | Defines that the cmdlet will display a prompt that asks if you want to continue running the command. | SwitchParameter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
None.
Examples
Example 1. Performing Failover to CDP Replica Latest Restore Point
This example show how to perform a failover to the latest restore point. The cmdlet will perform a failover without without showing warnings in the PowerShell console.
Perform the following steps:
|
Example 2. Performing Failover to CDP Replica Replicated State
This example shows to perform a failover to a specific replicated state of the CDP replica of the Win05 VM.
Perform the following steps:
|
Example 3. Performing Failover to CDP Replica Long-Term Restore Point
This example shows how to start to perform a failover to a specific long-term restore point of the CDP replica of the Win05 VM.
Perform the following steps:
|
Related Commands