Start-VBRVMRestoreToAmazon

Short Description

Starts a restore session of workloads to Amazon EC2 service.

Applies to

Platform: VMware, Hyper-V

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

Syntax

Start-VBRVMRestoreToAmazon -RestorePoint <COib> -Region <VBRAmazonEC2Region> -LicenseType <VBRAmazonEC2LicenseType> {BYOL | ProvidedByAWS} -InstanceType <VBRAmazonEC2InstanceType> -VMName <string> [-DiskConfiguration <VBRAmazonEC2DiskConfiguration[]>] -VPC <VBRAmazonEC2VPC> -Subnet <VBRAmazonEC2Subnet> -SecurityGroup <VBRAmazonEC2SecurityGroup> [-Reason <string>] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-VirusDetectionAction <VBRAmazonEC2VirusDetectionAction> {ConnectToIsolatedSecurityGroup | AbortRecovery}][-VirusIsolatedSecurityGroup <VBRAmazonEC2SecurityGroup>] ProxyAppliance [VBRAmazonEC2ProxyAppliance] [-RestorePointShareCreds <CCredentials>] [-Credentials <CCredentials>] [-Wait] [-AmazonEC2Tag <VBRAmazonEC2Tag[]>] [-AllocatePublicIP] [-ShutdownVM]  [<CommonParameters>]

Detailed Description

This cmdlet starts a restore session of workloads to Amazon EC2 service.

Parameters

Parameter

Description

Type

Required

Position

Accept
Pipeline
Input

RestorePoint

Specifies the restore point of workloads that you want to restore to Amazon EC2.

Accepts the COib object. To get this object, run the Get-VBRRestorePoint cmdlet.

True

Named

False

Region

Specifies the Amazon EC2 region. The cmdlet will restore the VM to this Amazon EC2 region.

Accepts the VBRAmazonEC2Region object. To get this object, run the Get-VBRAmazonEC2Region cmdlet.

True

Named

False

LicenseType

Specifies the OS license. You can select the following types of licenses:

  • BYOL - set this option if you want to use your existing licenses for Microsoft software.
  • ProvidedByAWS - set this option if you want Amazon EC2 to update the license on the restored VM.

VBRAmazonEC2LicenseType

True

Named

False

InstanceType

Specifies the Amazon EC2 instance type. The cmdlet will restore the VM with the CPU and memory settings of the selected instance.

Accepts the VBRAmazonEC2InstanceType object. To get this object, run the Get-VBRAmazonEC2InstanceType cmdlet.

True

Named

False

VMName

Specifies the name for the target EC2 instance. Veeam Backup & Replication will restore the instance with this name.

String

True

Named

False

DiskConfiguration

Specifies an array of storage volume settings for Amazon EC2 instances.

If you do not specify this parameter, the cmdlet will restore all disks from the selected restore point.

Accepts the VBRAmazonEC2DiskConfiguration[] object. To get this object, run the New-VBRAmazonEC2DiskConfiguration cmdlet.

False

Named

False

VPC

Specifies the Amazon VPC.

Accepts the VBRAmazonEC2VPC object. To get this object, run the Get-VBRAmazonEC2VPC cmdlet.

True

Named

False

Subnet

Specifies the Amazon VPC subnet.

Accepts the VBRAmazonEC2Subnet object. To get this object, run the Get-VBRAmazonEC2Subnet cmdlet.

True

Named

False

SecurityGroup

Specifies the Amazon VPC security group.

Accepts the VBRAmazonEC2SecurityGroup object.  To get this object, run the Get-VBRAmazonEC2SecurityGroup cmdlet.

True

Named

False

Reason

Specifies the restore reason.

String

True

Named

False

EnableAntivirusScan

Enables the secure restore option. Veeam Backup & Replication will trigger the antivirus software to scan selected machines before the restore.

SwitchParameter

False

Named

False

EnableYARAScan

Enables the YARA scan for the selected VMs.

Use the YARAScanRule parameter to specify the YARA rule to be used.

SwitchParameter

False

Named

False

YARAScanRule

Specifies the YARA rule. Veeam Backup & Replication will scan VMs 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.

String

False

Named

False

EnableEntireVolumeScan

For secure restore.

Enables the option for the antivirus to continue VMs scan after the first virus threat is found. Use this option if you want to get the report on all virus threats.

SwitchParameter

False

Named

False

VirusDetectionAction

For secure restore.

Specifies secure restore action when the virus threat is detected.

  • ConnectToIsolatedSecurityGroup - Select this action if you want to restore the machine to a different AWS security group. Use the VirusIsolatedSecurityGroup parameter to specify the security group.
  • AbortRecovery - use this option if you want to cancel the restore session.

VBRAmazonEC2VirusDetectionAction

False

Named

False

VirusIsolatedSecurityGroup

For secure restore.

Specifies the AmazonEC2 security group. Veeam Backup & Replication will restore the infected the machine to the selected security group.

Accepts the VBRAmazonEC2SecurityGroup object.  To get this object, run the Get-VBRAmazonEC2SecurityGroup cmdlet.

False

Named

False

ProxyAppliance

Specifies the AmazonEC2 proxy appliance.

Accepts the VBRAmazonEC2ProxyAppliance object. To get this object, run the New-VBRAmazonEC2ProxyAppliance cmdlet.

False

Named

False

Credentials

For restoring backups located on a network shared folder.

Specifies the credentials to authenticate with the network shared folder.

Accepts the CCredentials object. To get this object, run the Get-VBRCredentials cmdlet.

False

Named

False

Wait

Defines that the command waits for the process to complete before accepting more input.

SwitchParameter

False

Named

False

AmazonEC2Tag

Specifies AmazonEC2 tags. The cmdlet will restore VMs with the specified tags.

Accepts the VBRAmazonEC2Tag[] object. To get this object, run the New-VBRAmazonEC2Tag cmdlet.

False

Named

False

AllocatePublicIP

Defines that the cmdlet will assign a public IP to the restored VM.

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

SwitchParameter

False

Named

False

ShutdownVM

Defines that the cmdlet will power on the restored VM after the restore is complete.

If you do not provide this parameter, the restored VM will remain powered off.

SwitchParameter

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 VBRVMRestoreToAmazon object that contains settings of a restore session to Amazon EC2 service.

Examples

Start-VBRVMRestoreToAmazonExample 1. Restoring Workloads to Amazon EC2

Start-VBRVMRestoreToAmazonExample 2. Restoring Workloads to Amazon EC2 using Proxy Appliance

Start-VBRVMRestoreToAmazonExample 3. Restoring Backups Created by Veeam Agent for Microsoft Windows to Amazon EC2

Related Commands

Page updated 12/5/2024

Page content applies to build 12.3.1.1139