Start-VBRReplicaFailover (obsolete)
Short Description
Fails over a corrupted VM to its replica.
|
Note |
|
This cmdlet is obsolete. The cmdlet still works, but it is recommended to rewrite your scripts using the Start-VBRViReplicaFailover cmdlet. |
Applies to
Platform: VMware, Hyper-V
Syntax
|
Start-VBRReplicaFailover -RestorePoint <COib> [-Reason <String>] [-Planned] [-RunAsync] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>] |
Detailed Description
This cmdlet allows you fail over a corrupted VM to its successfully created replica.
Performing failover is switching to a VM replica in case the original VM is damaged. You can fail over to the latest state of a replica or to any of its good known restore points.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept |
|---|---|---|---|---|---|
|
RestorePoint |
Specifies the replica restore point to which you want to fail over. |
Accepts the COib object. To get this object, run the Get-VBRRestorePoint cmdlet. |
True |
1 |
True (ByValue, |
|
Reason |
Specifies the reason for performing a failover. |
String |
False |
Named |
False |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
SwitchParameter |
False |
Named |
False |
|
Planned |
Performs planned failover. |
SwitchParameter |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Failing Over to Latest Restore Point of Replica [Using Pipeline]
|
This example shows how to fail over to the WebServer_replica VM replica to its latest restore point.
Perform the following steps:
|
Example 2. Failing Over to Specific Restore Point of Replica [Using Variable]
|
This example shows how to fail over to the WebServer_replica VM replica to a specific restore point.
Perform the following steps:
The Get-VBRRestorePoint cmdlet will return an array of restore points. Mind the ordinal number of the necessary restore point (in our example, it is the first restore point in the array).
|
Related Commands