New-ScsiController

This cmdlet creates a new SCSI controller.

Syntax

-HardDisk  <HardDisk>
[[-Type]  <ScsiControllerType>]
[[-BusSharingMode]  <ScsiBusSharingMode>]
[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.

    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

    Feedback

    Was this page helpful?