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
|
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. |
|
False |
Named |
False |
|
AvailabilityDomain |
Specifies the availability domain where Veeam Backup & Replication will create the restored instance.
Accepts the |
True |
Named |
False |
|
|
Compartment |
Specifies the compartment where Veeam Backup & Replication will create the restored instance.
Accepts the |
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 |
False |
Named |
False |
|
|
DisksToExclude |
Specifies an array of names of disk files that Veeam Backup & Replication will not restore. |
|
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 |
|
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 |
|
False |
Named |
False |
|
EnableYARAScan |
Enables the YARA scan for the workload.
Use the |
|
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. |
|
False |
Named |
False |
|
LicenseType |
Specifies the license type for the restored instance:
If you do not specify this parameter, Veeam Backup & Replication will use the |
|
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 |
|
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 |
False |
Named |
False |
|
|
Ocpus |
For flexible shapes. Specifies the number of OCPUs for the restored instance.
You must specify this parameter together with the |
|
False |
Named |
False |
|
QuarantineAllocatePublicIP |
For the Defines that Veeam Backup & Replication will assign a public IP address to the instance when it connects the instance to the isolated network. |
|
False |
Named |
False |
|
QuarantineNetworkSecurityGroup |
For the 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 |
False |
Named |
False |
|
|
QuarantineSubnet |
For the Specifies the subnet of the isolated network to which Veeam Backup & Replication will connect the instance if the scan finds a threat.
Accepts the |
False |
Named |
False |
|
|
Reason |
Specifies the reason for the restore. Veeam Backup & Replication saves the reason to the session details. |
|
False |
Named |
False |
|
RestorePoint |
Specifies the restore point of the workload that you want to restore.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Shape |
Specifies the shape of the restored instance.
If the shape is flexible, specify the The processor architecture of the shape (x86 or Arm) must match the architecture of the source workload.
Accepts the |
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. |
|
False |
Named |
False |
|
Subnet |
Specifies the subnet to which Veeam Backup & Replication will connect the restored instance.
Accepts the |
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 |
False |
Named |
False |
|
|
VirusDetectionAction |
For secure restore. Specifies secure restore action when the virus threat is detected.
You must specify this parameter if you provide the |
|
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. |
|
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
To use a YARA rule, you must specify its name and extension. Veeam Backup & Replication accepts only
You can use this parameter only if you provide the |
|
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
Example 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.
Perform the following steps:
|
Example 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.
Perform the following steps:
|
Example 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
Run the
|