Creates the VBRCloudFailoverPlanObject object.
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus
New-VBRCloudFailoverPlanObject -RestorePoint <COib> [-BootOrder <int>] [-BootDelay <int>] [-PublicIpRule <VBRFailoverPlanPublicIPRule>] [<CommonParameters>]
You must create the VBRCloudFailoverPlanObject object for each replica that you want to add to the failover plan. For each replica, you can set the boot order and the delay time.
- The boot order indicates the order in which the replicas 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 cloud replica that you want to add to the cloud failover plan.
Specifies the order number by which the replica will boot.
Specifies the delay time for the replica 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 replicas, these replicas will start simultaneously.
Specifies the array of rules for mapping public IP and ports to the IP and ports of the replica VM.
Accepts VBRFailoverPlanPublicIPRule type.
This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.
These example shows how to create three VBRCloudFailoverPlanObject objects for the group of servers: a DNS server and two Microsoft Exchange servers. The DNS server boots first followed by the two Microsoft Exchange servers booted with a delay.
The servers objects are obtained with Get-VBRRestorePoint and are sorted by creation time in descending order. The first restore point in the list is selected and piped down.
- The VBRCloudFailoverPlanObject for the DNS server is assigned to the '$DNS' variable. The boot order is omitted and will be automatically set to 0 sec to start the DNS server immediately.
- The VBRCloudFailoverPlanObject 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 VBRCloudFailoverPlanObject 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.
PS C:\PS> $DNS = Get-VBRRestorePoint -Name "DNSServer" | Sort-Object $_.creationtime -Descending | Select -First 1 | New-VBRCloudFailoverPlanObject -BootDelay 0
PS C:\PS> $MSExchange01 = Get-VBRRestorePoint -Name "MS_Exchange_Server_01" | Sort-Object $_.creationtime -Descending | Select -First 1 | New-VBRFailoverPlanObject -BootOrder 1 -BootDelay 180
PS C:\PS> $MSExchange02 = Get-VBRRestorePoint -Name "MS_Exchange_Server_02" | Sort-Object $_.creationtime -Descending | Select -First 1 | New-VBRFailoverPlanObject -BootOrder 2 -BootDelay 120