--- title: "Set-VBRAzureInstantRecoverySwitchingOptions" description: "This cmdlet sets the switchover options for an Instant Recovery operation." canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/set-vbrazureinstantrecoveryswitchingoptions.html" breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Data Recovery > Instant Recovery to Microsoft Azure > Recovery and Finalization > Set-VBRAzureInstantRecoverySwitchingOptions" dateModified: "2026-08-19" --- # 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 -SwitchingOptions [] ``` ## 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 VBRAzureInstantRecovery object. To create or get this object, run the Start-VBRAzureInstantRecovery or Get-VBRAzureInstantRecovery cmdlet.

VBRAzureInstantRecovery

True

Named

True (ByPropertyName, ByValue)

SwitchingOptions

Specifies the switchover options that you want to change for the Instant Recovery operation.

Accepts the VBRAzureInstantRecoverySwitchingOptions object. To create or get this object, run the New-VBRAzureInstantRecoverySwitchingOptions or Get-VBRAzureInstantRecoverySwitchingOptions cmdlet.

VBRAzureInstantRecoverySwitchingOptions

True

Named

False

`` This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7). ## Examples ::: example ### 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: 1. Run the [`Get-VBRAzureInstantRecovery`](get-vbrazureinstantrecovery.md) cmdlet. Specify the `Id` parameter value. Save the result to the `$recovery` variable. 2. Run the [`New-VBRAzureInstantRecoverySwitchingOptions`](new-vbrazureinstantrecoveryswitchingoptions.md) cmdlet. Specify the `SwitchingType` and `PowerOnVm` parameter values. Save the result to the `$switchingOptions` variable. 3. Run the `Set-VBRAzureInstantRecoverySwitchingOptions` cmdlet. Set the `$recovery` variable as the `InstantRecovery` parameter value. Set the `$switchingOptions` variable as the `SwitchingOptions` parameter value. ::: ## Related Commands - [`Get-VBRAzureInstantRecovery`](get-vbrazureinstantrecovery.md) - [`New-VBRAzureInstantRecoverySwitchingOptions`](new-vbrazureinstantrecoveryswitchingoptions.md)