Start-VBRvCloudRestoreVm
Short Description
Starts a Cloud Director VM restore.
Applies to
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides parameter sets that allow you to:
- Start a Cloud Director VM restore to original location.
Start-VBRvCloudRestoreVm -RestorePoint <COib> [-PowerUp] [-Reason <String>] [-RunAsync] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-VirusDetectionAction <VBRVirusDetectionAction>] [-EnableVmTagsRestore] [<CommonParameters>] |
- Start a Cloud Director VM restore to another location.
Start-VBRvCloudRestoreVm -RestorePoint <COib> -vApp <CVcdVappItem> [-StorageProfile <CVcdOrgVdcStorageProfile>] [-vCloudDatastore <CVcdDatastoreRestoreInfo>] [-VmTemplate <IVcdItem>] [-VMName <String>] [-PowerUp] [-Reason <String>] [-RunAsync] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-VirusDetectionAction <VBRVirusDetectionAction>] [-EnableVmTagsRestore] [<CommonParameters>] |
Detailed Description
This cmdlet starts a restore session of a selected Cloud Director VM. With this cmdlet, you can perform the following recover scenarios:
- Restore to the original location
- Restore to another location
- Restore with different settings
- Secure restore of the selected restore point
To restore a VM to the original location you only need to select the required restore point. Be careful to specify the restore point of the VM, not the vApp which is not a valid value for this cmdlet. Veeam Backup & Replication gets all the information needed for restore from the restore point data.
You cannot restore multiple VM with one command, to restore several VMs you need to start a restore session for each one.
Parameters
Parameter | Description | Type | Required | Position | Accept |
---|---|---|---|---|---|
RestorePoint | Specifies the restore point of the VM. If you specify no other parameters of the VM, it will be restored with its initial settings, i.e. the datastore or VM template. This parameter does not accept VM arrays. | Accepts the COib object. To get this object, run the Get-VBRRestorePoint cmdlet. | True | 1 | True (ByValue, |
vApp | Specifies the vApp where to you want to restore the VM. | Accepts the CVcdVappItem object. To get this object, run the Find-VBRvCloudEntity cmdlet. | False | Named | False |
StorageProfile | Specifies the storage profile you want to apply to the restored VM. | Accepts the CVcdOrgVdcStorageProfile object. To get this object, run the Find-VBRvCloudEntity cmdlet.
| False | Named | False |
vCloudDatastore | Specifies the datastore you want to use with the restored VM. | Accepts the CVcdDatastoreRestoreInfo object. To get this object, run the Find-VBRViDatastore cmdlet. | False | Named | False |
VmTemplate | Specifies the template you want to apply to the restored VM. | Accepts the IVcdItem object. To get this object, run the Find-VBRvCloudEntity cmdlet. | False | Named | False |
VMName | Specifies the VM name you want to apply to the restored VM. | String | False | Named | False |
PowerUp | If set, the VM will be powered up right after it is restored. Otherwise you will need to power up the VM manually. | SwitchParameter | False | Named | False |
Reason | Specifies the reason for performing restore of the selected VM. The information you provide will be saved in the session history so that you can reference it later. | String | False | Named | False |
RunAsync | Defines that the command returns immediately without waiting for the task to complete. | SwitchParameter | False | Named | False |
EnableAntivirusScan | Defines that the cmdlet will perform secure restore. Veeam Backup & Replication will trigger the antivirus software to scan selected VMs 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 antivirus scan for all volumes of the infected restore point. Use this option if you want to perform secure restore with the following options:
| SwitchParameter | False | Named | False |
VirusDetectionAction | For secure restore. Specifies secure restore action when the virus threat is detected.
| VBRVirusDetectionAction | False | Named | False |
EnableVmTagsRestore | Defines that the cmdlet will restore VM tags. | SwitchParameter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
None.
Examples
Example 1. Starting Cloud VM Restore to Original Location
The example shows how to start a Cloud Director VM restore to the original location.
Perform the following steps:
The Get-VBRRestorePoint cmdlet will return an array of restore points. Mind the ordinal number of the necessary restore point (in our example, it is the second restore point in the array). |
Example 2. Starting Cloud VM Restore to Another vApp
The example shows how to restore a VM to another vApp with another storage profile.
Perform the following steps:
|
Example 3. Starting Secure Cloud VM Restore
The example shows how to run secure restore of the selected VM. The job will run with the following settings:
Perform the following steps:
|
Related Commands