Add-VBRFailoverPlan
Short Description
Creates failover plans or cloud failover plans.
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
FailoverPlanObjectAdd-VBRFailoverPlan -Name <String> [-Description <String>] -FailoverPlanObject <VBRFailoverPlanObject[]>
[-PrefailoverCommand <String>] [-PostfailoverCommand <String>] [-EnablePublicIpRule] [<CommonParameters>]
-
CloudFailoverPlanObjectAdd-VBRFailoverPlan -Name <String> [-Description <String>]
-CloudFailoverPlanObject <VBRCloudFailoverPlanObject[]> [-PrefailoverCommand <String>]
[-PostfailoverCommand <String>] [-EnablePublicIpRule] [<CommonParameters>]
Detailed Description
This cmdlet creates the following types of failover plans:
- Failover plan
- Cloud failover plan
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
CloudFailoverPlanObject |
Specifies the array of VMs replicated to cloud. These VMs will be added to the cloud failover plan.
Accepts the |
True |
Named |
False |
|
|
Description |
Specifies the description of the failover plan. |
|
False |
Named |
False |
|
EnablePublicIpRule |
Enables the failover plan to use the public IP rules configured in the |
|
False |
Named |
False |
|
FailoverPlanObject |
Specifies the array of VMs you want to add to the failover plan.
Accepts the |
True |
Named |
False |
|
|
Name |
Specifies the name that you want to assign to the failover plan. |
|
True |
Named |
False |
|
PostfailoverCommand |
Specifies the path to the script you want to automatically run after failing over to replicas is complete. Veeam Backup & Replication provides a 10- minute timeout for the script. In case the script does not run successfully or timeout ends, the failover proceeds disregarding script failure. |
|
False |
Named |
False |
|
PrefailoverCommand |
Specifies the path to the script you want to automatically run before failing over to replicas. Veeam Backup & Replication provides a 10-minute timeout for the script. In case the script does not run successfully or timeout ends, the failover is not performed. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Example 1. Creating Failover Plan for Group of VMs
|
This example shows how to create a failover plan for a group of VMs: a DNS server and two Microsoft Exchange servers.
Perform the following steps:
|
Example 2. Creating Cloud Failover Plan
|
[Cloud] This example shows how to create a cloud failover plan named
Perform the following steps:
|
Related Commands
New-VBRFailoverPlanObjectCreates the VBRFailoverPlanObject object.New-VBRCloudFailoverPlanObjectDefines VM replicas that you want to add to a failover plan.