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 |
---|---|---|---|---|---|
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:
| 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 by the following path: C:\Program Files\Veeam\Backup and Replication\Backup\YaraRules. To use the Yara rule, you must specify its name and extension. Veeam Backup & Replication accepts only .yar and .yara extension. | 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.
| 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
Example 1. Restoring Workloads to Amazon EC2
This example shows how to restore workloads to Amazon EC2.
Perform the following steps:
|
Example 2. Restoring Workloads to Amazon EC2 using Proxy Appliance
This example shows how to restore workloads to Amazon EC2 with AmazonEC2 proxy appliance.
Perform the following steps:
|
Example 3. Restoring Backups Created by Veeam Agent for Microsoft Windows to Amazon EC2
This example shows how to restore backups of computers created by Veeam Agent for Microsoft Windows to Amazon EC2.
Perform the following steps:
The Get-VBRRestorePoint cmdlet will return an array of restore points. Consider that the array numbering starts with 0. In our example, the second restore point is used.
|
Related Commands