Start-VBRVMRestoreToGoogleCloud
Short Description
Starts a restore session to Google Compute Engine.
Platform: VMware, Hyper-V
Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Start-VBRVMRestoreToGoogleCloud -RestorePoint <COib> -Zone <VBRGoogleCloudComputeZone> [-LicenseType <VBRGoogleCloudLicenseType>] -InstanceType <VBRGoogleCloudComputeInstanceType> -VMName <String> -DiskConfiguration <VBRGoogleCloudComputeDiskConfiguration[]> -Subnet <VBRGoogleCloudComputeSubnet> [-Reason <String>] [-EnableAntivirusScan] [-EnableYARAScan] [-YARAScanRule <String>] [-EnableEntireVolumeScan] [-VirusDetectionAction <VBRGoogleCloudComputeVirusDetectionAction>] [-VirusIsolatedSubnet <VBRGoogleCloudComputeSubnet>] [-ProxyAppliance <VBRGoogleCloudComputeProxyAppliance>] [-GoogleCloudLabel <VBRGoogleCloudComputeLabel[]>] [-ShutdownVM] [-AllocatePublicIP] [-Wait] [<CommonParameters>] |
Detailed Description
This cmdlet starts a restore session to Google Compute Engine.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
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. |
|
False |
Named |
False |
|
DiskConfiguration |
Specifies the array of disk settings for Google Cloud VM instances. If you do not specify this parameter, the cmdlet will restore all disks as balanced persistent.
Accepts the |
True |
Named |
False |
|
|
EnableAntivirusScan |
Enables secure restore. If you provide this parameter, Veeam Backup & Replication will trigger the antivirus software to scan selected VMs before the restore. |
|
False |
Named |
False |
|
EnableEntireVolumeScan |
For secure restore. Enables VMs scan by an antivirus after the first virus threat is found. If you provide this parameter, the cmdlet will generate a report on all virus threats. |
|
False |
Named |
False |
|
EnableYARAScan |
Enables the YARA scan for the selected VMs.
Use the |
|
False |
Named |
False |
|
GoogleCloudLabel |
Specifies an array of Google Cloud labels. The cmdlet will restore VMs with the specified labels.
Accepts the |
False |
Named |
False |
|
|
InstanceType |
Specifies the Google Cloud VM instance type. The cmdlet will restore the VM with the CPU and memory settings of the selected VM instance.
Accepts the |
True |
Named |
False |
|
|
LicenseType |
Specifies the OS license. You can select the following types of licenses:
If you do not specify this parameter, the cmdlet will launch restore with the license type default for the machine OS. |
|
False |
Named |
False |
|
ProxyAppliance |
Specifies the Google Cloud proxy appliance.
Accepts the |
False |
Named |
False |
|
|
Reason |
Specifies the restore reason. |
|
False |
Named |
False |
|
RestorePoint |
Specifies the restore point of machines that you want to restore to Google Compute Engine.
Accepts the |
|
True |
Named |
False |
|
ShutdownVM |
Defines that the cmdlet will power off the restored VM after the restore is complete. If you do not provide this parameter, the restored VM will remain powered on. |
|
False |
Named |
False |
|
Subnet |
Specifies the Google Cloud subnet.
Accepts the |
True |
Named |
False |
|
|
VirusDetectionAction |
For secure restore. Specifies secure restore action when the virus threat is detected.
|
|
False |
Named |
False |
|
VirusIsolatedSubnet |
Specifies the Google Cloud subnet where the restore will be performed if Veeam Backup & Replication detects any virus threats.
Note: This parameter is required if you set the
Accepts the |
False |
Named |
False |
|
|
VMName |
Specifies the name for the target Google Cloud instance. Veeam Backup & Replication will restore the VM instance with this name. |
|
True |
Named |
False |
|
Wait |
Defines that the command will wait for the process to complete before accepting more input. |
|
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 |
|
Zone |
Specifies the Google Cloud availability zone. The cmdlet will restore the VM to this Google Cloud availability zone.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Starting Session of Machine Restore to Google Compute Engine
This example shows how to restore machines to Google Compute Engine.
|
$backup = Get-VBRBackup -Name "MSExchange Backup" $restorepoint = Get-VBRRestorePoint -backup $backup $account = Get-VBRGoogleCloudComputeAccount -Name "GCP service acc 1" $computeregion = Get-VBRGoogleCloudComputeRegion -Account $account $computezone = Get-VBRGoogleCloudComputeZone -Region $computeregion $instancetype = Get-VBRGoogleCloudComputeInstanceType -Zone $computezone $diskconfig = New-VBRGoogleCloudComputeDiskConfiguration -DiskName "srv20.vhdx" -DiskType StandardPersistent $subnet = Get-VBRGoogleCloudComputeSubnet -Region $computeregion $label = New-VBRGoogleCloudComputeLabel -Key "location" -Value "west" Start-VBRVMRestoreToGoogleCloud -RestorePoint $restorepoint -Zone $computezone -InstanceType $instancetype -VMName "Restored VM" -DiskConfiguration $diskconfig -Subnet $subnet -Reason "Data recovery" -EnableAntivirusScan -EnableEntireVolumeScan -VirusDetectionAction AbortRecovery -GoogleCloudLabel $label -AllocatePublicIP |
Perform the following steps:
- Run the
Get-VBRBackupReturns backups. cmdlet. Provide theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. Set the$backupvariable as thebackupparameter. Save the result to the$restorepointvariable. - Run the
Get-VBRGoogleCloudComputeAccountReturns Google Cloud service account credentials record. cmdlet. Provide theNameparameter value. Save the result to the$accountvariable. - Run the
Get-VBRGoogleCloudComputeRegionReturns Google Cloud regions. cmdlet. Set the$accountvariable as theAccountparameter. Save the result to the$computeregionvariable. - Run the
Get-VBRGoogleCloudComputeZoneReturns Google Cloud availability zones. cmdlet. Set the$computeregionvariable as theRegionparameter. Save the result to the$computezonevariable. - Run the
Get-VBRGoogleCloudComputeInstanceTypeReturns Google Cloud VM instance types. cmdlet. Set the$computezonevariable as theZoneparameter. Save the result to the$instancetypevariable. - Run the
New-VBRGoogleCloudComputeDiskConfigurationCreates storage volume settings for Google Cloud instances. cmdlet. Specify theDiskNameandDiskTypeparameter values. Save the result to the$diskconfigvariable. - Run the
Get-VBRGoogleCloudComputeSubnetReturns subnets for Google Cloud region. cmdlet. Set the$computeregionvariable as theRegionparameter. Save the result to the$subnetvariable. - Run the
New-VBRGoogleCloudComputeLabelCreates Google Cloud labels. cmdlet. Specify theKeyandValueparameter values. Save the result to the$labelvariable. - Run the
Start-VBRVMRestoreToGoogleCloudcmdlet. Specify the following settings:- Set the
$restorepointvariable as theRestorePointparameter value. - Set the
$computezonevariable as theZoneparameter value. - Set the
$instancetypevariable as theInstanceTypeparameter value. - Specify the
VMNameparameter value. - Set the
$diskconfigvariable as theDiskConfigurationparameter value. - Set the
$subnetvariable as theSubnetparameter value. - Specify the
Reasonparameter value. - Provide the
EnableAntivirusScanparameter. - Provide the
EnableEntireVolumeScanparameter. - Set the
AbortRecoveryoption for theVirusDetectionActionparameter value. - Set the
$labelvariable as theGoogleCloudLabelparameter value. - Provide the
AllocatePublicIPparameter.
- Set the
Related Commands
Get-VBRBackupGet-VBRGoogleCloudComputeRegionReturns Google Cloud regions.Get-VBRGoogleCloudComputeZoneReturns Google Cloud availability zones.Get-VBRGoogleCloudComputeInstanceTypeReturns Google Cloud VM instance types.New-VBRGoogleCloudComputeDiskConfigurationCreates storage volume settings for Google Cloud instances.Get-VBRGoogleCloudComputeSubnetReturns subnets for Google Cloud region.New-VBRGoogleCloudComputeLabelCreates Google Cloud labels.