Start-VBRvCloudRestoreVm
Short Description
Starts a Cloud Director VM restore.
Platform: VMware
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
OriginalLocation (Default)Start-VBRvCloudRestoreVm [-RestorePoint] <COib> [-PowerUp] [-Reason <String>] [-RunAsync]
[-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan]
[-VirusDetectionAction <VBRVirusDetectionAction>] [-EnableVmTagsRestore] [<CommonParameters>]
-
DifferentLocationStart-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 Pipeline Input |
|---|---|---|---|---|---|
|
EnableAntivirusScan |
Defines that the cmdlet will perform secure restore. Veeam Backup & Replication will trigger the antivirus software to scan selected VMs before the restore. |
|
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:
|
|
False |
Named |
False |
|
EnableVmTagsRestore |
Defines that the cmdlet will restore VM tags. |
|
False |
Named |
False |
|
EnableYARAScan |
Enables the YARA scan for the selected VMs.
Use the |
|
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. |
|
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. |
|
False |
Named |
False |
|
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 |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
StorageProfile |
Specifies the storage profile you want to apply to the restored VM.
Accepts the |
|
False |
Named |
False |
|
vApp |
Specifies the vApp where to you want to restore the VM.
Accepts the |
|
True |
Named |
False |
|
vCloudDatastore |
Specifies the datastore you want to use with the restored VM.
Accepts the |
|
False |
Named |
False |
|
VirusDetectionAction |
For secure restore. Specifies secure restore action when the virus threat is detected.
|
|
False |
Named |
False |
|
VMName |
Specifies the VM name you want to apply to the restored VM. |
|
False |
Named |
False |
|
VmTemplate |
Specifies the template you want to apply to the restored VM.
Accepts the |
|
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
To use a YARA rule, you must specify its name and extension. Veeam Backup & Replication accepts only |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
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:
|
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
Get-VBRRestorePointReturns restore points.Find-VBRvCloudEntityLooks for Cloud Director entities.