This is an archive version of the document. To get the most up-to-date information, see the current version.

Start-VBRFailoverPlan

In this article

    Short Description

    Starts failover by failover plan.

    Applies to

    Platform: VMware, Hyper-V

    Product Edition: Enterprise, Enterprise Plus

    Syntax

    Start-VBRFailoverPlan -FailoverPlan <VBRFailoverPlan[]> [-Wait] [-Force]  [<CommonParameters>]

    -OR-

    Start-VBRFailoverPlan -FailoverPlan <VBRFailoverPlan[]> [-FromDate <datetime>] [-Wait] [-Force] [<CommonParameters>]

    -OR-

    Start-VBRFailoverPlan -FailoverPlan <VBRFailoverPlan[]> [-Wait] [-Force] [-Test]  [<CommonParameters>]

    Related Commands

    Get-VBRFailoverPlan

    Return Type

    VBRBackupSession[]

    Detailed Description

    This cmdlet starts failover by failover plan. With this cmdlet, you can start a number of failover processes.

    Parameters

    Parameter

    Description

    Required

    Position

    Accept
    Pipeline
    Input

    Accept
    Wildcard
    Characters

    FailoverPlan

    Specifies the failover plan you want to start.

    Accepts VBRFailoverPlan.

    You can assign multiple plans to this object.

    True

    Named

    True (by Value
    FromPipeline,
    ValueFromPipeline
    ByPropertyName)

    False

    FromDate

    Use this parameter to fail over to a particular restore point.

    Specifies the date and time to which you want to fail over. Veeam Backup & Replication will find a restore point closest to this moment.

    If omitted, Veeam Backup & Replication will fail over to the latest restore point.

    False

    Named

    False

    False

    Wait

    Use this parameter to manage starting multiple failover processes.

    If indicated, the next failover process will wait for the previous to end.

    False

    Named

    False

    False

    Force

    Used for cloud failovers to start full failover after the user's site is already partially failed over to cloud replicas.

    If set, the cmdlet turns off the user appliance without notifying the user. Otherwise, the cmdlet will display a warning.

     

     

     

     

    Test

    If set, the failover runs in test mode.

     

     

     

     

    <CommonParameters>

    This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

    Example 1

    This command starts failover process by failover plan named "MS Exchange Group Failover". The VMs in the failover group are failed over to the latest restore point.

    • The failover plan is obtained with Get-VBRFailoverPlan and piped down.
    • The FromDate parameter is omitted to select the latest restore point automatically.

    PS C:\PS> Get-VBRFailoverPlan -Name "MS Exchange Group Failover" | Start-VBRFailoverPlan

    Example 2

    This command starts failover process represented by the '$MSExchangeGroup' variable. The VMs in the failover group are failed over to the latest restore point.

    • The failover plan is obtained with Get-VBRFailoverPlan and assigned to the '$MSExchangeGroup' variable beforehand.
    • The FromDate parameter is omitted to select the latest restore point automatically.

    PS C:\PS> Start-VBRFailoverPlan -FailoverPlan $MSExchangeGroup

    Example 3

    This command starts failover processes by failover plans named "MS Exchange Group Failover" and "SQLServers Group Failover". The VMs are failed over to a week ago state. The VM groups are failed over one by one.

    • The date is obtained with the Date command and assigned to the '$date' variable beforehand.
    • The failover plans are obtained with Get-VBRFailoverPlan and piped down.
    • The Wait parameter is used to start the failover processes one after the other.

    PS C:\PS> $date = date

    PS C:\PS> Get-VBRFailoverPlan -Name "MS Exchange Group Failover", "SQLServers Group Failover" | Start-VBRFailoverPlan -FromDate $date.AddDays(-7) -Wait