Set-VBRViVirtualDevice
Short Description
Modifies settings of VM virtual disks.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Set-VBRViVirtualDevice [-VirtualDevice] <VBRViVirtualDevice> [-ControllerNumber <Int32>] [-Type <VBRViVirtualDeviceType>] [-VirtualDeviceNode <Int32>] [<CommonParameters>] |
Detailed Description
This cmdlet modifies settings of VM virtual disks.
Note |
|
To modify settings, specify new values for the necessary parameters. The cmdlet will overwrite the previous parameter values with new values. The parameters that you omit will remain unchanged. |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ControllerNumber |
Specifies a controller number for VM virtual disks. The cmdlet will set the specified controller number to the VM virtual disks.
Maximum allowed value: |
|
False |
Named |
False |
|
Type |
Specifies a virtual device node type. You can specify one of the following virtual device node types:
|
|
False |
Named |
False |
|
VirtualDevice |
Specifies VM virtual disks. The cmdlet will modify settings of these VM disks.
Accepts the |
|
True |
0 |
True (ByPropertyName, ByValue) |
|
VirtualDeviceNode |
Specifies a number of a virtual device node. The cmdlet will set the VM virtual disk with the specified number of a virtual device node. |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
This cmdlet returns the VBRViVirtualDevice object that contains details on virtual disks of VMs from backups.
Examples
Modifying VM Virtual Disk Settings
This cmdlet modifies the following settings for VM virtual disks and sets it to the SCSI 0:5. The controller number is set to 0. The number of a virtual device node is set to 5.
|
$backup = Get-VBRBackup -Name "Winsrv4515" $restorepoint = Get-VBRRestorePoint $disk = Get-VBRViVirtualDevice -RestorePoint $restorepoint[3] Set-VBRViVirtualDevice -VirtualDevice $disk -ControllerNumber 0 -Type SCSI -VirtualDeviceNode 5 |
Perform the following steps:
- Get the restore point:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. Save the result to the$restorepointvariable.The
Get-VBRRestorePointcmdlet will return an array of restore points. Consider that the array numbering starts with 0. In our example, the fourth restore point is used.
- Run the
- Run the
Get-VBRViVirtualDeviceReturns details on VMware VM virtual disks. cmdlet. Set the$restorepointvariable as theRestorePointparameter value. Save the result to the$diskvariable.The cmdlet output will contain the following details on VM virtual disks:
ControllerNumber,Type,VirtualDeviceNode,VirtualDeviceCapacityGBandName. - Run the
Set-VBRViVirtualDevicecmdlet. Specify the following settings:- Set the
$diskvariable as theVirtualDeviceparameter value. - Specify the
ControllerNumberparameter value. - Set the
SCSIoption for theTypeparameter. - Specify the
VirtualDeviceNodeparameter value.
- Set the
Related Commands
Get-VBRBackupReturns backups.Get-VBRRestorePointReturns restore points.Get-VBRViVirtualDeviceReturns details on VMware VM virtual disks.