New-ScsiController Command | Vmware PowerCLI Reference

New-ScsiController

This cmdlet creates a new SCSI controller.

Syntax

New-ScsiController
-HardDisk < HardDisk >
[ [-Type ] < ScsiControllerType > ]
[ [-BusSharingMode ] < ScsiBusSharingMode > ]
[-ProgressAction < ActionPreference > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
HardDisk HardDisk named
  • pipeline
Specifies the hard disk you want to attach to the new SCSI controller. Passing multiple values to this parameter is obsolete.
optional Type ScsiControllerType 1
Specifies the type of the SCSI controller. The valid values are ParaVirtual, VirtualBusLogic, VirtualLsiLogic, and VirtualLsiLogicSAS.
optional BusSharingMode ScsiBusSharingMode 2
Specifies the bus sharing mode of the SCSI controller. The valid values are NoSharing, Physical, and Virtual.
optional ProgressAction ActionPreference named

Output

VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.ScsiController

Examples

Example 1

$vm = Get-VM VM | New-HardDisk -CapacityKB 10485760 | New-ScsiController

Creates a new 10GB hard disk and a new SCSI controller with default values for the BusSharingMode and Type properties.

Example 2

$disk = Get-HardDisk -VM VM | Select -First 2
$disk | New-ScsiController -BusSharingMode Physical -Type VirtualLsiLogicSAS

Creates for the first two hard disks of VM a new SCSI controller of VirtualLsiLogicSAS type and with Physical bus sharing mode.

Related Commands

ScsiController

This cmdlet retrieves the virtual SCSI controllers assigned to the specified HardDisk, VirtualMachine, Template, and Snapshot objects.

This cmdlet creates a new SCSI controller.

This cmdlet modifies the specified SCSI controllers.

ScsiLun

This cmdlet retrieves the SCSI devices available on the vCenter Server system.

This cmdlet modifies the configuration of a SCSI device.

ScsiLunPath

This cmdlet retrieves the list of vmhba paths to a specified SCSI device.

This cmdlet configures a vmhba path to a SCSI device.