New-VBRCloudFailoverPlanObject
Short Description
Defines VM replicas that you want to add to a failover plan.
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
New-VBRCloudFailoverPlanObject -RestorePoint <COib> [-BootOrder <Int32>] [-BootDelay <Int32>] [-PublicIpRule <VBRFailoverPlanPublicIPRule[]>] [<CommonParameters>] |
Detailed Description
This cmdlet creates a new VBRCloudFailoverPlanObject object. This object contains VM replicas that you want to add to a cloud failover plan. You can add the following types of replicas for a failover plan:
- Simple cloud replicas
- Cloud Director cloud replicas
Run the Add-VBRFailoverPlanCreates failover plans or cloud failover plans. cmdlet to create a failover plan.
Note |
|
You must create the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
BootDelay |
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 |
|
False |
Named |
False |
|
BootOrder |
Specifies the order number by which the replica will boot. |
|
False |
Named |
False |
|
PublicIpRule |
Specifies the array of rules for mapping public IP and ports to the IP and ports of the replica VM.
Accepts the |
False |
Named |
False |
|
|
RestorePoint |
Specifies the restore point of the cloud replica that you want to add to the cloud failover plan.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Adding VM Replicas to Cloud Failover Plan
This example shows how to create VBRCloudFailoverPlanObject objects for three servers: a DNS server and two Microsoft Exchange servers. The servers will boot with the following order:
- The DNS server boots first.
- The first Microsoft Exchange server boots with the
180seconds delay. - The second Microsoft Exchange server boots with the
120seconds delay.
|
$DNS = Get-VBRRestorePoint -Name "DNSServer" | Sort-Object $_.creationtime -Descending | Select -First 1 $MSExchange01 = Get-VBRRestorePoint -Name "MS_Exchange_Server_01" | Sort-Object $_.creationtime -Descending | Select -First 1 $MSExchange02 = Get-VBRRestorePoint -Name "MS_Exchange_Server_02" | Sort-Object $_.creationtime -Descending | Select -First 1 New-VBRCloudFailoverPlanObject -RestorePoint $DNS -BootDelay 0 New-VBRCloudFailoverPlanObject -RestorePoint $MSExchange01 -BootOrder 1 -BootDelay 180 New-VBRCloudFailoverPlanObject -RestorePoint $MSExchange02 -BootOrder 2 -BootDelay 120 |
Perform the following steps:
- Run the
Get-VBRRestorePointReturns restore points. cmdlet. Use theSort-Objectand theSelectcommands to select the first restore point. Save the result to the$DNSvariable. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. Use theSort-Objectand theSelectcommands to select the first restore point. Save the result to the$MSExchange01variable. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. Use theSort-Objectand theSelectcommands to select the first restore point. Save the result to the$MSExchange02variable. - Run the
New-VBRCloudFailoverPlanObjectcmdlet. Set the$DNSvariable as theRestorePointparameter value. Set0as theBootDelayparameter value. - Run the
New-VBRCloudFailoverPlanObjectcmdlet. Set the$MSExchange01variable as theRestorePointparameter value. Set1as theBootOrderparameter value and180as theBootDelayparameter value. - Run the
New-VBRCloudFailoverPlanObjectcmdlet. Set the$MSExchange02variable as theRestorePointparameter value. Set2as theBootOrderparameter value and120as theBootDelayparameter value.
Related Commands
Get-VBRRestorePointReturns restore points.Find-VBRViEntityLooks for VMware objects.