Start-VBRVMRestoreToOracleCloud

Short Description

Starts a restore session to Oracle Cloud Infrastructure.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Start-VBRVMRestoreToOracleCloud -RestorePoint <COib> -Compartment <VBROracleCloudCompartment>

-AvailabilityDomain <VBROracleCloudAvailabilityDomain> -Shape <VBROracleCloudShape> [-Ocpus <Single>]

[-MemoryInGB <Single>] -Subnet <VBROracleCloudSubnet>

[-NetworkSecurityGroup <VBROracleCloudNetworkSecurityGroup>] [-AllocatePublicIP] [-InstanceName <String>]

[-LicenseType <VBROracleCloudLicenseType>] [-DisksToExclude <String[]>]

[-DiskConfiguration <VBROracleCloudDiskConfiguration[]>] [-Tag <VBROracleCloudTag[]>] [-ShutdownVM]

[-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan]

[-VirusDetectionAction <VBROracleCloudVirusDetectionAction>] [-QuarantineSubnet <VBROracleCloudSubnet>]

[-QuarantineNetworkSecurityGroup <VBROracleCloudNetworkSecurityGroup>] [-QuarantineAllocatePublicIP]

[-Reason <String>] [-Wait] [<CommonParameters>]

Detailed Description

This cmdlet starts restore from a backup to Oracle Cloud Infrastructure. Veeam Backup & Replication restores the workload as an OCI compute instance in the compartment, availability domain and network that you specify. All objects that you specify must belong to the same OCI account and region.

Before you run the cmdlet, make sure that the following conditions are met:

  • You have added the OCI account to Veeam Backup & Replication. To add an account, run the Add-VBROracleCloudAccountAdds Oracle Cloud Infrastructure accounts to Veeam Backup & Replication. cmdlet.
  • A helper appliance template is deployed in the region of the availability domain that you specify, and the template is ready to use. To deploy a template, run the Deploy-VBROracleCloudApplianceTemplateDeploys helper appliance templates to Oracle Cloud Infrastructure. cmdlet.

To stop the restore, run the Stop-VBRVMRestoreToOracleCloudStops restore sessions to Oracle Cloud Infrastructure. cmdlet.

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

AllocatePublicIP

Defines that Veeam Backup & Replication will assign a public IP address to the restored instance.

If you do not provide this parameter, the restored instance will remain without a public IP address.

SwitchParameter

False

Named

False

AvailabilityDomain

Specifies the availability domain where Veeam Backup & Replication will create the restored instance.

Accepts the VBROracleCloudAvailabilityDomain object. To get this object, run the Get-VBROracleCloudAvailabilityDomainReturns availability domains in Oracle Cloud Infrastructure regions. cmdlet.

VBROracleCloudAvailabilityDomain

True

Named

False

Compartment

Specifies the compartment where Veeam Backup & Replication will create the restored instance.

Accepts the VBROracleCloudCompartment object. To get this object, run the Get-VBROracleCloudCompartmentReturns compartments in Oracle Cloud Infrastructure. cmdlet.

VBROracleCloudCompartment

True

Named

False

DiskConfiguration

Specifies an array of disk settings for the restored instance. You can use the settings to select the volume type for a disk or to exclude a disk from the restore.

If you do not specify settings for a disk, Veeam Backup & Replication will restore the disk with the default volume type.

Accepts the VBROracleCloudDiskConfiguration[] object. To create this object, run the New-VBROracleCloudDiskConfigurationCreates disk settings for restore to Oracle Cloud Infrastructure. cmdlet.

VBROracleCloudDiskConfiguration[]

False

Named

False

DisksToExclude

Specifies an array of names of disk files that Veeam Backup & Replication will not restore.

String[]

False

Named

False

EnableAntivirusScan

Enables secure restore. If you provide this parameter, Veeam Backup & Replication will trigger the antivirus software to scan the workload before the restore.

If you provide this parameter, you must also specify the VirusDetectionAction parameter.

SwitchParameter

False

Named

False

EnableEntireVolumeScan

For secure restore.

Defines that the antivirus will continue the scan after the first virus threat is found. Use this parameter if you want to get the report on all virus threats.

You can use this parameter only if you provide the EnableAntivirusScan or EnableYARAScan parameter.

SwitchParameter

False

Named

False

EnableYARAScan

Enables the YARA scan for the workload.

Use the YARAScanRule parameter to specify the YARA rule to be used. If you provide this parameter, you must also specify the VirusDetectionAction parameter.

SwitchParameter

False

Named

False

InstanceName

Specifies the name of the restored instance. If you do not specify this parameter, Veeam Backup & Replication will use the name of the source workload.

String

False

Named

False

LicenseType

Specifies the license type for the restored instance:

  • OracleCloudProvided: use this option to use the license that OCI provides.
  • BYOL: use this option to use your own license.

If you do not specify this parameter, Veeam Backup & Replication will use the OracleCloudProvided option.

VBROracleCloudLicenseType

False

Named

False

MemoryInGB

For flexible shapes.

Specifies the amount of memory in GB for the restored instance.

You must specify this parameter together with the Ocpus parameter if the shape is flexible. You cannot use this parameter with a shape that has a fixed size.

Single

False

Named

False

NetworkSecurityGroup

Specifies the network security group that Veeam Backup & Replication will assign to the restored instance.

If you do not specify this parameter, Veeam Backup & Replication will not assign a network security group to the instance.

Accepts the VBROracleCloudNetworkSecurityGroup object. To get this object, run the Get-VBROracleCloudNetworkSecurityGroupReturns network security groups in Oracle Cloud Infrastructure. cmdlet.

VBROracleCloudNetworkSecurityGroup

False

Named

False

Ocpus

For flexible shapes.

Specifies the number of OCPUs for the restored instance.

You must specify this parameter together with the MemoryInGB parameter if the shape is flexible. You cannot use this parameter with a shape that has a fixed size.

Single

False

Named

False

QuarantineAllocatePublicIP

For the ConnectToIsolatedNetwork option of the VirusDetectionAction parameter.

Defines that Veeam Backup & Replication will assign a public IP address to the instance when it connects the instance to the isolated network.

SwitchParameter

False

Named

False

QuarantineNetworkSecurityGroup

For the ConnectToIsolatedNetwork option of the VirusDetectionAction parameter.

Specifies the network security group that Veeam Backup & Replication will assign to the instance when it connects the instance to the isolated network.

Accepts the VBROracleCloudNetworkSecurityGroup object. To get this object, run the Get-VBROracleCloudNetworkSecurityGroupReturns network security groups in Oracle Cloud Infrastructure. cmdlet.

VBROracleCloudNetworkSecurityGroup

False

Named

False

QuarantineSubnet

For the ConnectToIsolatedNetwork option of the VirusDetectionAction parameter.

Specifies the subnet of the isolated network to which Veeam Backup & Replication will connect the instance if the scan finds a threat.

Accepts the VBROracleCloudSubnet object. To get this object, run the Get-VBROracleCloudSubnetReturns subnets in Oracle Cloud Infrastructure. cmdlet.

VBROracleCloudSubnet

False

Named

False

Reason

Specifies the reason for the restore. Veeam Backup & Replication saves the reason to the session details.

String

False

Named

False

RestorePoint

Specifies the restore point of the workload that you want to restore.

Accepts the COib object. To get this object, run the Get-VBRRestorePointReturns restore points. cmdlet.

COib

True

Named

True (ByPropertyName, ByValue)

Shape

Specifies the shape of the restored instance.

If the shape is flexible, specify the Ocpus and MemoryInGB parameters.

The processor architecture of the shape (x86 or Arm) must match the architecture of the source workload.

Accepts the VBROracleCloudShape object. To get this object, run the Get-VBROracleCloudShapeReturns compute shapes available in Oracle Cloud Infrastructure. cmdlet.

VBROracleCloudShape

True

Named

False

ShutdownVM

Defines that Veeam Backup & Replication will power off the restored instance after the restore.

If you do not provide this parameter, the restored instance will remain powered on.

SwitchParameter

False

Named

False

Subnet

Specifies the subnet to which Veeam Backup & Replication will connect the restored instance.

Accepts the VBROracleCloudSubnet object. To get this object, run the Get-VBROracleCloudSubnetReturns subnets in Oracle Cloud Infrastructure. cmdlet.

VBROracleCloudSubnet

True

Named

False

Tag

Specifies an array of tags that Veeam Backup & Replication will add to the restored instance. You can specify up to 10 tags.

Accepts the VBROracleCloudTag[] object. To create this object, run the New-VBROracleCloudTagCreates tags for Oracle Cloud Infrastructure resources. cmdlet.

VBROracleCloudTag[]

False

Named

False

VirusDetectionAction

For secure restore.

Specifies secure restore action when the virus threat is detected.

  • ProceedWithRestore: use this option if you want to continue the restore.
  • ConnectToIsolatedNetwork: use this option if you want Veeam Backup & Replication to connect the restored instance to the isolated network when the scan finds a threat. If you set this option, you must also specify the QuarantineSubnet parameter.
  • AbortRestore: use this option if you want to cancel the restore session.

You must specify this parameter if you provide the EnableAntivirusScan or EnableYARAScan parameter.

VBROracleCloudVirusDetectionAction

False

Named

False

Wait

Defines that the cmdlet will wait for the restore session to complete before it returns the session.

If you do not provide this parameter, the cmdlet will return the session immediately after it starts the restore.

SwitchParameter

False

Named

False

YARAScanRule

For secure restore.

Specifies the YARA rule. Veeam Backup & Replication will scan the workload with this rule.

Veeam Backup & Replication searches for YARA rules in the YaraRules folder. The default path is: C:\Program Files\Veeam\Backup and Replication\Backup\YaraRules.

To use a YARA rule, you must specify its name and extension. Veeam Backup & Replication accepts only .yar and .yara extensions.

You can use this parameter only if you provide the EnableYARAScan parameter.

String

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

The cmdlet returns the VBROracleCloudRestoreSession object that contains the restore session details.

Examples

Start-VBRVMRestoreToOracleCloudExample 1. Restoring Workload to Oracle Cloud Infrastructure

This example shows how to restore a workload from the latest restore point to OCI. The shape is a flexible shape, so the example specifies the number of OCPUs and the amount of memory.

$backup = Get-VBRBackup -Name "Windows Servers Backup"

$restorepoint = Get-VBRRestorePoint -Backup $backup | Sort-Object CreationTime | Select-Object -Last 1

$account = Get-VBROracleCloudAccount -Name "My OCI Account"

$region = Get-VBROracleCloudRegion -Account $account -Name "eu-frankfurt-1"

$compartment = Get-VBROracleCloudCompartment -Account $account -Name "Restore"

$domain = Get-VBROracleCloudAvailabilityDomain -Region $region -Name "*AD-1"

$shape = Get-VBROracleCloudShape -Compartment $compartment -AvailabilityDomain $domain -Name "VM.Standard.E5.Flex"

$vcn = Get-VBROracleCloudVcn -Region $region -Compartment $compartment -Name "Restore VCN"

$subnet = Get-VBROracleCloudSubnet -Compartment $compartment -Vcn $vcn -Name "Restore Subnet"

Start-VBRVMRestoreToOracleCloud -RestorePoint $restorepoint -Compartment $compartment -AvailabilityDomain $domain -Shape $shape -Ocpus 2 -MemoryInGB 16 -Subnet $subnet -InstanceName "srv01-restored" -Reason "Data recovery" -Wait

Perform the following steps:

  1. Run the Get-VBRBackupReturns backups. cmdlet. Specify the Name parameter value. Save the result to the $backup variable.
  2. Run the Get-VBRRestorePointReturns restore points. cmdlet. Set the $backup variable as the Backup parameter value. Pipe the cmdlet output to the Sort-Object and Select-Object cmdlets to select the latest restore point. Save the result to the $restorepoint variable.
  3. Run the Get-VBROracleCloudAccountReturns Oracle Cloud Infrastructure accounts. cmdlet. Specify the Name parameter value. Save the result to the $account variable.
  4. Run the Get-VBROracleCloudRegionReturns Oracle Cloud Infrastructure regions that an account is subscribed to. cmdlet. Set the $account variable as the Account parameter value. Specify the Name parameter value. Save the result to the $region variable.
  5. Run the Get-VBROracleCloudCompartmentReturns compartments in Oracle Cloud Infrastructure. cmdlet. Set the $account variable as the Account parameter value. Specify the Name parameter value. Save the result to the $compartment variable.
  6. Run the Get-VBROracleCloudAvailabilityDomainReturns availability domains in Oracle Cloud Infrastructure regions. cmdlet. Set the $region variable as the Region parameter value. Specify the Name parameter value. Save the result to the $domain variable.
  7. Run the Get-VBROracleCloudShapeReturns compute shapes available in Oracle Cloud Infrastructure. cmdlet. Specify the following settings:
    • Set the $compartment variable as the Compartment parameter value.
    • Set the $domain variable as the AvailabilityDomain parameter value.
    • Specify the Name parameter value.

    Save the result to the $shape variable.

  8. Run the Get-VBROracleCloudVcnReturns virtual cloud networks in Oracle Cloud Infrastructure. cmdlet. Specify the following settings:
    • Set the $region variable as the Region parameter value.
    • Set the $compartment variable as the Compartment parameter value.
    • Specify the Name parameter value.

    Save the result to the $vcn variable.

  9. Run the Get-VBROracleCloudSubnetReturns subnets in Oracle Cloud Infrastructure. cmdlet. Specify the following settings:
    • Set the $compartment variable as the Compartment parameter value.
    • Set the $vcn variable as the Vcn parameter value.
    • Specify the Name parameter value.

    Save the result to the $subnet variable.

  10. Run the Start-VBRVMRestoreToOracleCloud cmdlet. Specify the following settings:
    • Set the $restorepoint variable as the RestorePoint parameter value.
    • Set the $compartment variable as the Compartment parameter value.
    • Set the $domain variable as the AvailabilityDomain parameter value.
    • Set the $shape variable as the Shape parameter value.
    • Specify the Ocpus parameter value.
    • Specify the MemoryInGB parameter value.
    • Set the $subnet variable as the Subnet parameter value.
    • Specify the InstanceName parameter value.
    • Specify the Reason parameter value.
    • Provide the Wait parameter.

Start-VBRVMRestoreToOracleCloudExample 2. Restoring Workload with Custom Disk Settings and Tags

This example shows how to restore a workload, restore the disk srv01.vhdx as a higher performance volume, exclude the disk srv01_data.vhdx and add a tag to the instance. The example uses the variables from the previous example.

$diskconfig = New-VBROracleCloudDiskConfiguration -DiskName "srv01.vhdx" -DiskType HigherPerformance -Include

$tag = New-VBROracleCloudTag -Key "location" -Value "west"

Start-VBRVMRestoreToOracleCloud -RestorePoint $restorepoint -Compartment $compartment -AvailabilityDomain $domain -Shape $shape -Ocpus 2 -MemoryInGB 16 -Subnet $subnet -DiskConfiguration $diskconfig -DisksToExclude "srv01_data.vhdx" -Tag $tag -AllocatePublicIP

Perform the following steps:

  1. Run the New-VBROracleCloudDiskConfigurationCreates disk settings for restore to Oracle Cloud Infrastructure. cmdlet. Specify the DiskName and DiskType parameter values. Provide the Include parameter. Save the result to the $diskconfig variable.
  2. Run the New-VBROracleCloudTagCreates tags for Oracle Cloud Infrastructure resources. cmdlet. Specify the Key and Value parameter values. Save the result to the $tag variable.
  3. Run the Start-VBRVMRestoreToOracleCloud cmdlet. Specify the following settings:
    • Set the $restorepoint variable as the RestorePoint parameter value.
    • Set the $compartment variable as the Compartment parameter value.
    • Set the $domain variable as the AvailabilityDomain parameter value.
    • Set the $shape variable as the Shape parameter value.
    • Specify the Ocpus parameter value.
    • Specify the MemoryInGB parameter value.
    • Set the $subnet variable as the Subnet parameter value.
    • Set the $diskconfig variable as the DiskConfiguration parameter value.
    • Specify the DisksToExclude parameter value.
    • Set the $tag variable as the Tag parameter value.
    • Provide the AllocatePublicIP parameter.

Start-VBRVMRestoreToOracleCloudExample 3. Restoring Workload with Secure Restore

This example shows how to scan the workload with an antivirus before the restore and connect the restored instance to an isolated network if the scan finds a threat. The example uses the variables from the first example and the $quarantinesubnet variable that contains the subnet of the isolated network.

Start-VBRVMRestoreToOracleCloud -RestorePoint $restorepoint -Compartment $compartment -AvailabilityDomain $domain -Shape $shape -Ocpus 2 -MemoryInGB 16 -Subnet $subnet -EnableAntivirusScan -VirusDetectionAction ConnectToIsolatedNetwork -QuarantineSubnet $quarantinesubnet

Run the Start-VBRVMRestoreToOracleCloud cmdlet. Specify the following settings:

  • Set the $restorepoint variable as the RestorePoint parameter value.
  • Set the $compartment variable as the Compartment parameter value.
  • Set the $domain variable as the AvailabilityDomain parameter value.
  • Set the $shape variable as the Shape parameter value.
  • Specify the Ocpus parameter value.
  • Specify the MemoryInGB parameter value.
  • Set the $subnet variable as the Subnet parameter value.
  • Provide the EnableAntivirusScan parameter.
  • Set the ConnectToIsolatedNetwork option for the VirusDetectionAction parameter value.
  • Set the $quarantinesubnet variable as the QuarantineSubnet parameter value.

Page updated 2026-11-24

Page content applies to build 13.2.0.193