Set-VBRFailoverPlan
Short Description
Modifies a selected failover plan or cloud failover plan.
Platform: VMware, Hyper-V
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRFailoverPlan -FailoverPlan <VBRFailoverPlan> [-Name <String>] [-Description <String>] [-FailoverPlanObject <VBRFailoverPlanObject[]>] [-EnablePreFailoverScript] [-PrefailoverCommand <String>] [-EnablePostFailoverScript] [-PostfailoverCommand <String>] [-EnablePublicIpRule] [-PassThru] [<CommonParameters>] |
Detailed Description
This cmdlet modifies settings of an existing failover plan or cloud failover plan.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Description |
Specifies the new description you want to apply to the failover plan. |
|
False |
Named |
False |
|
EnablePostFailoverScript |
Enables the option to run a script after failing over to replicas is complete.
Use the |
|
False |
Named |
False |
|
EnablePreFailoverScript |
Enables the option to run a script before failing over to replicas.
Use the |
|
False |
Named |
False |
|
EnablePublicIpRule |
Enables the failover plan to use the public IP rules configured in the |
|
False |
Named |
False |
|
FailoverPlan |
Specifies the failover plan or cloud failover plan you want to modify.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
FailoverPlanObject |
Specifies the array of VMs or cloud VMs you want to add to the failover plan.
Accepts the |
False |
Named |
False |
|
|
Name |
Specifies the new name you want to assign to the failover plan. |
|
False |
Named |
False |
|
PassThru |
Defines that the command returns the output object to the Windows PowerShell console. |
|
False |
Named |
False |
|
PostfailoverCommand |
Specifies the path to the script you want to automatically run after failing over to replicas is complete. |
|
False |
Named |
False |
|
PrefailoverCommand |
Specifies the path to the script you want to automatically run before failing over to replicas. |
|
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. Adding Server to Failover Plan
|
This example shows how to add one more server to the
Perform the following steps:
|
Example 2. Adding Server to Failover Plan
|
[Cloud provider] This example shows how to add a pre-failover script to the
Perform the following steps:
|
Related Commands
New-VBRFailoverPlanObjectCreates the VBRFailoverPlanObject object.