Set-VBRAzureInstantRecoverySwitchingOptions
Short Description
Sets the switchover options for an Instant Recovery operation.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRAzureInstantRecoverySwitchingOptions -InstantRecovery <VBRAzureInstantRecovery> -SwitchingOptions <VBRAzureInstantRecoverySwitchingOptions> [<CommonParameters>] |
Detailed Description
This cmdlet sets the switchover options for an Instant Recovery operation.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
InstantRecovery |
Specifies the Instant Recovery operation for which you want to change the switchover options.
Accepts the |
True |
Named |
True (ByPropertyName, ByValue) |
|
|
SwitchingOptions |
Specifies the switchover options that you want to change for the Instant Recovery operation.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Example 1. Setting Switchover Options for Instant Recovery Operation
This command shows how to set switchover options for the Instant Recovery operation with the d1d2a50e-8052-498f-826b-e5c86f30ed5a ID.
|
$recovery = Get-VBRAzureInstantRecovery -Id "d1d2a50e-8052-498f-826b-e5c86f30ed5a" $switchingOptions = New-VBRAzureInstantRecoverySwitchingOptions -SwitchingType Manual -PowerOnVm Set-VBRAzureInstantRecoverySwitchingOptions -InstantRecovery $recovery -SwitchingOptions $switchingOptions |
Perform the following steps:
- Run the
Get-VBRAzureInstantRecoveryReturns an array of objects on the Instant Recovery to Microsoft Azure operation. cmdlet. Specify theIdparameter value. Save the result to the$recoveryvariable. - Run the
New-VBRAzureInstantRecoverySwitchingOptionsDefines the switchover options. cmdlet. Specify theSwitchingTypeandPowerOnVmparameter values. Save the result to the$switchingOptionsvariable. - Run the
Set-VBRAzureInstantRecoverySwitchingOptionscmdlet. Set the$recoveryvariable as theInstantRecoveryparameter value. Set the$switchingOptionsvariable as theSwitchingOptionsparameter value.
Related Commands
Get-VBRAzureInstantRecoveryReturns an array of objects on the Instant Recovery to Microsoft Azure operation.New-VBRAzureInstantRecoverySwitchingOptionsDefines the switchover options.