Creates the VBRFailoverPlanObject object.
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
New-VBRFailoverPlanObject -RestorePoint <COib> [-BootOrder <int>] [-BootDelay <int>] [<CommonParameters>]
New-VBRFailoverPlanObject -Vm <IItem> [-BootOrder <int>] [-BootDelay <int>] [<CommonParameters>]
You must create the VBRFailoverPlanObject object for each VM that you want to add to the failover plan. For each VM, you can set the boot order and the delay time.
- The boot order indicates the order in which the VMs will start by the failover plan. Make sure you set the dependent VMs to start after the VMs they depend on.
- The delay time is an interval between each VM start. Use delay intervals to make sure that some VMs are already running at the moment the dependent VMs start.
Specifies the restore point of the replica that you want to add to the cloud failover plan.
Specifies the VM you want to add to the failover plan.
Specifies the order number by which the VM will boot.
Specifies the delay time for the VM to boot.
The delay time is set in seconds.
If omitted, the delay time will be set to 60 sec by default.
If you set boot delay to '0' to a number of VMs, these VMs will start simultaneously.
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
These commands create three VBRFailoverPlanObject objects for the group of mail servers: a DNS server and two Microsoft Exchange servers. The DNS server starts first followed by the two Microsoft Exchange servers started with a delay.
The servers objects are obtained with Find-VBRViEntity and piped down.
- The VBRFailoverPlanObject for the DNS server is assigned to the '$DNS' variable. The boot order is omitted and will be automatically set to 0. The boot delay is set to 0 sec to start the DNS server immediately.
- The VBRFailoverPlanObject for the first Microsoft Exchange server is assigned to the '$MSExchange01' variable. The boot order is set to 1, and the boot delay is set to 180 sec.
- The VBRFailoverPlanObject for the second Microsoft Exchange server is assigned to the '$MSExchange02' variable. The boot order is set to 2, and the boot delay is set to 120 sec.
$DNS = Find-VBRViEntity -Name "DNSServer" | New-VBRFailoverPlanObject -BootDelay 0
$MSExchange01 = Find-VBRViEntity -Name "MS_Exchange_Server_01" | New-VBRFailoverPlanObject -BootOrder 1 -BootDelay 180
$MSExchange02 = Find-VBRViEntity -Name "MS_Exchange_Server_02" | New-VBRFailoverPlanObject -BootOrder 2 -BootDelay 120
This command creates the VBRFailoverPlanObject for the server named 'MS_Exchange_Server_01'.
- The server object is obtained with Find-VBRViEntity and assigned to the '$vm1' variable.
- The VBRFailoverPlanObject is created and assigned to the '$MSExchange01' variable. The '$vm1' variable is used to add the Microsoft Exchange server, the boot order is set to 1 and the boot delay is set to 180 sec.
$vm1 = Find-VBRViEntity -Name "MS_Exchange_Server_01"
$MSExchange01 = New-VBRFailoverPlanObject -Vm $vm1 -BootOrder 1 -BootDelay 180