Start-VBRHvReplicaFailover

Short Description

Fails over corrupted Hyper-V VMs to their replicas.

Platform: Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

This cmdlet provides the following parameter sets:

  • AllParameterSets (Default)

    Start-VBRHvReplicaFailover [-RestorePoint] <COib> [-Reason <String>] [-RunAsync] [<CommonParameters>]

  • Definite

    Start-VBRHvReplicaFailover [-RestorePoint] <COib> [-Reason <String>] [-RunAsync] [-Definite] [<CommonParameters>]

  • Planned

    Start-VBRHvReplicaFailover [-RestorePoint] <COib> [-Reason <String>] [-RunAsync] [-Planned] [<CommonParameters>]

Detailed Description

This cmdlet fails over a corrupted Hyper-V VM to its successfully created replica.

This cmdlet provides 3 parameter sets for the following operations:

  • Failover
  • Permanent failover
  • Planned failover

Run the Start-VBRHvReplicaFailbackFails back Hyper-V VMs to production host. cmdlet to fail back to the original VM.

Run the Stop-VBRReplicaFailoverUndoes replica failover. cmdlet to undo failover. You can also undo planned failover.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Definite

Defines that the failover is permanent.

SwitchParameter

False

Named

False

Planned

Defines that the failover is planned.

SwitchParameter

False

Named

False

Reason

Specifies the reason for performing a failover.

String

False

Named

False

RestorePoint

Specifies the replica restore point to which you want to fail over.

Accepts the COib object. To get this object, run the Get-VBRRestorePointReturns restore points. cmdlet.

COib

True

0

True (ByPropertyName, ByValue)

RunAsync

Defines that the command returns immediately without waiting for the task to complete.

SwitchParameter

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Examples

Start-VBRHvReplicaFailoverExample 1. Performing Planned Failover to VM Replica

This example shows how to perform failover to the Hyper-V WebServer VM replica.

$restorepoint = Get-VBRRestorePoint -Name "Hyper-V WebServer"

Start-VBRHvReplicaFailover -RestorePoint $restorepoint[1] -Reason "Data recovery" -RunAsync -Planned

Perform the following steps:

  1. Run the Get-VBRRestorePointReturns restore points. cmdlet. Specify the Name parameter value. Save the result to the $restorepoint variable.
  2. Run the Start-VBRHvReplicaFailover cmdlet. Specify the following settings:
    • Set the $restorepoint variable as the RestorePoint parameter value.

      The Get-VBRRestorePoint cmdlet will return an array of restore points. Consider that the array numbering starts with 0. In our example, the second restore point is used.

    • Specify the Reason parameter value.
    • Provide the RunAsync parameter.
    • Provide the Planned parameter.

Start-VBRHvReplicaFailoverExample 2. Performing Permanent Failover to VM Replica

This example shows how to perform failover to the Hyper-V WebServer VM replica.

$restorepoint = Get-VBRRestorePoint -Name "Hyper-V WebServer"

Start-VBRHvReplicaFailover -RestorePoint $restorepoint[3] -Reason "Data recovery" -RunAsync -Definite

Perform the following steps:

  1. Run the Get-VBRRestorePointReturns restore points. cmdlet. Specify the Name parameter value. Save the result to the $restorepoint variable.
  2. Run the Start-VBRHvReplicaFailover cmdlet. Specify the following settings:
    • Set the $restorepoint variable as the RestorePoint parameter value.

      The Get-VBRRestorePoint cmdlet will return an array of restore points. Consider that the array numbering starts with 0. In our example, the fourth restore point is used.

    • Specify the Reason parameter value.
    • Provide the RunAsync parameter.
    • Provide the Definite parameter.

Get-VBRRestorePointReturns restore points.

Page updated 2026-08-19

Page content applies to build 13.1.1.18