Start-VBRRestoreVM
Short Description
Starts restore of the entire VMware VM.
Platform: VMware
For Hyper-V, run the Start-VBRHvRestoreVMStarts restore of an entire Hyper-V VM. cmdlet.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
This cmdlet provides the following parameter sets:
-
DifferentLocation (Default)Start-VBRRestoreVM [-RestorePoint] <COib> [-Server] <CHost> [[-ResourcePool] <CViResourcePoolItem>]
[[-Datastore] <CViDatastoreItem>] [-Folder <CViFolderItem>] [-StoragePolicy <VBRViStoragePolicy>]
[-SourceNetwork <VBRViNetworkInfo[]>] [-TargetNetwork <VBRViNetworkInfo[]>] [-VMName <String>]
[-DiskType <EDiskCreationMode>] [-PowerUp <Boolean>] [-SkipTagsRestore] [-Reason <String>] [-RunAsync]
[-Credentials <CCredentials>] [-Force] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>]
[-EnableEntireVolumeScan] [-VirusDetectionAction <VBRVirusDetectionAction>] [-NICsEnabled]
[-Proxy <CViProxy[]>] [<CommonParameters>]
-
StagedRestoreStart-VBRRestoreVM [-RestorePoint] <COib> [-Server] <CHost> [[-ResourcePool] <CViResourcePoolItem>]
[[-Datastore] <CViDatastoreItem>] [-Folder <CViFolderItem>] [-StoragePolicy <VBRViStoragePolicy>]
[-SourceNetwork <VBRViNetworkInfo[]>] [-TargetNetwork <VBRViNetworkInfo[]>] [-VMName <String>]
[-DiskType <EDiskCreationMode>] [-PowerUp <Boolean>] [-SkipTagsRestore] [-Reason <String>] [-RunAsync]
[-Credentials <CCredentials>] [-Force] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>]
[-EnableEntireVolumeScan] [-VirusDetectionAction <VBRVirusDetectionAction>] [-EnableStagedRestore]
-StagingVirtualLab <ISbVirtualLab> [-StagingApplicationGroup <CSbAppGroup>] -StagingScript <String>
-StagingCredentials <CInternalCredentials> [-StagingStartupOptions <VBRApplicationGroupStartupOptions>]
[-NICsEnabled] [-Proxy <CViProxy[]>] [<CommonParameters>]
-
OriginalLocationStart-VBRRestoreVM [-RestorePoint] <COib> [-DiskType <EDiskCreationMode>] [-PowerUp <Boolean>]
[-SkipTagsRestore] [-Reason <String>] [-RunAsync] [-QuickRollback] [-ToOriginalLocation]
[-StoragePolicyAction <VBRStoragePolicyAction>] [-Credentials <CCredentials>] [-Force] [-EnableAntivirusScan]
[-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan]
[-VirusDetectionAction <VBRVirusDetectionAction>] [-NICsEnabled] [-Proxy <CViProxy[]>] [<CommonParameters>]
Detailed Description
This cmdlet starts the entire VM restore. With this cmdlet, you can restore the VM with the following options:
- Restore to original location
- Restore to original location with different settings
- Restore to another location
- Staged restore
- Secure restore
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Credentials |
Specifies the credentials you want to use for authenticating with the VM. |
|
False |
Named |
False |
|
Datastore |
For restore to another location. Specifies the datastore to which you want to connect the restored VM.
Accepts the |
|
False |
3 |
False |
|
DiskType |
Specifies the disk type you want to apply to the restored VM:
|
|
False |
Named |
False |
|
EnableAntivirusScan |
Enables the secure restore option. Veeam Backup & Replication will trigger the antivirus software to scan selected VMs before the restore. |
|
False |
Named |
False |
|
EnableEntireVolumeScan |
For secure restore. Defines that the antivirus will continue VMs scan after the first virus threat is found. Use this option if you want to get the report on all virus threats. |
|
False |
Named |
False |
|
EnableStagedRestore |
For staged restore. Enables the staged restore option. |
|
True |
Named |
False |
|
EnableYARAScan |
Enables the YARA scan for the selected VMs.
Use the |
|
False |
Named |
False |
|
Folder |
For restore to another location. Specifies the folder where you want to locate the restored VM.
Accepts the |
|
False |
Named |
False |
|
Force |
Defines that the cmdlet will perform VM restore even if the geographic location of the repository where VM backups reside and the target host location do not match. |
|
False |
Named |
False |
|
NICsEnabled |
Defines that the restored VM will be connected to the network.
Default:
Note: To disable this option, set the parameter value to |
|
False |
Named |
False |
|
PowerUp |
Defines that the restored VM will be powered up immediately after the restore. Otherwise, you will have to power up the VM manually. |
|
False |
Named |
False |
|
Proxy |
Specifies the backup proxy that the cmdlet will use during restore. If you do not provide this parameter, the cmdlet will use select the backup proxy automatically.
Accepts the |
|
False |
Named |
False |
|
QuickRollback |
For restore to original location. Defines that the incremental restore must be performed. |
|
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 |
|
ResourcePool |
For restore to another location. Specifies the resource pool where you want to locate the restored VM.
Accepts the |
|
False |
2 |
False |
|
RestorePoint |
Specifies the VM restore point to which you want to restore.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
Server |
Specifies the ESXi host where you want to locate the restored VM. Note: The cmdlet will not run if you specify this parameter with the ToOriginalLocation parameter. |
|
True |
1 |
False |
|
SkipTagsRestore |
Defines that the VM will be restored without its VMware tag. Otherwise, the restored VM will keep its original tag. |
|
False |
Named |
False |
|
SourceNetwork |
For restore to another location. Specifies the source site network. Veeam Backup & Replication will map it to the target network.
Note: This parameter is required if you specify the
Accepts the |
False |
Named |
False |
|
|
StagingApplicationGroup |
For staged restore. Specifies the application group that the cmdlet will use for staged restore.
Accepts the |
|
False |
Named |
False |
|
StagingCredentials |
For staged restore. Specifies the VM guest credentials for the staged restore. Veeam Backup & Replication will use these credentials for authenticating with the VM and run the script.
Accepts the |
|
True |
Named |
False |
|
StagingScript |
For staged restore. Specifies the script location. Veeam Backup & Replication will use this script to prepare VMs before the restore. |
|
True |
Named |
False |
|
StagingStartupOptions |
For staged restore. Specifies startup settings of VMs that you want to restore. Veeam Backup & Replication will use these settings to start selected VMs after recovery.
Accepts the |
|
False |
Named |
False |
|
StagingVirtualLab |
For staged restore. Specifies the virtual lab. The cmdlet will use this virtual lab to start VMs and run the script. Specifies the virtual lab that you will use for staged restore. Veeam Backup & Replication will move VMs into the isolated environment and will run the staging script.
Accepts the |
|
True |
Named |
False |
|
StoragePolicy |
Specifies the VMware storage policy profile that must be applied to the restored virtual disks.
Accepts |
False |
Named |
False |
|
|
StoragePolicyAction |
Specifies the strategy for selecting storage policy profile in case the storage profile of the backed up VM differs from the profile of the original VM:
|
|
False |
Named |
False |
|
TargetNetwork |
For restore to another location. Specifies the target site network. Veeam Backup & Replication will map it with the source network.
Note: This parameter is required if you specify the
Accepts the |
False |
Named |
False |
|
|
ToOriginalLocation |
Defines that the VM must be restored with original ResourcePool, Datastore and Folder settings.
Note: The cmdlet will not run if you specify this parameter with the |
|
True |
Named |
False |
|
VirusDetectionAction |
For secure restore. Specifies the secure restore action when the infection is detected.
|
|
False |
Named |
False |
|
VMName |
Specifies the name you want to apply to the restored VM. By default, the original VM name is applied. |
|
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. Restoring VM to Original Location
|
This example shows how to start restore of a VM to the original location.
Perform the following steps:
|
Example 2. Restoring VM to Another Location
|
This example shows how to restore a VM to another location.
Perform the following steps:
|
Example 3. Performing Staged Restore of VM
|
The example shows how perform staged restore of the selected VM.
Perform the following steps:
|
Related Commands
Get-VBRRestorePointReturns restore points.Get-VBRServerReturns hosts connected to the backup infrastructure.Find-VBRViResourcePoolReturns VMware resource pools.Find-VBRViDatastoreLooks for VMware datastores.Find-VBRViStoragePolicyLooks for VMware storage policy profiles.Find-VBRViFolderLooks for folders on a specified ESXi host.Get-VBRLocationReturns geographic locations created in Veeam Backup & Replication.