Get-ScsiController
This cmdlet retrieves the virtual SCSI controllers assigned to the specified HardDisk, VirtualMachine, Template, and Snapshot objects.
Syntax
[[-Template]
<Template[]>]
[[-Snapshot] <Snapshot[]>]
[-HardDisk <HardDisk[]>]
[-Id <String[]>]
[-Name <String[]>]
[-Server <VIServer[]>]
[-VM <VirtualMachine[]>]
[CommonParameters]
[[-Snapshot] <Snapshot[]>]
[-HardDisk <HardDisk[]>]
[-Id <String[]>]
[-Name <String[]>]
[-Server <VIServer[]>]
[-VM <VirtualMachine[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
Template[] | 1 |
|
Filters the SCSI controllers by the virtual machine templates they belong to. | optional |
|
Snapshot[] | 2 |
|
Filters the SCSI controllers by the snapshots they belong to. | optional |
|
HardDisk[] | named |
|
Filters the SCSI controllers by the hard disks they belong to. | optional |
|
String[] | named |
|
Specifies the IDs of the SCSI controllers you want to retrieve. Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that matches exactly one of the string values in that list. | optional |
|
String[] | named |
|
Specifies the names of the SCSI controllers you want to retrieve. | optional |
|
VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer. | optional |
|
VirtualMachine[] | named |
|
Filters the SCSI controllers by the virtual machines they belong to. |
Output
VMware.VimAutomation.ViCore.Types.V1.VirtualDevice.ScsiController
Examples
Example 1
Get-VM VM1, VM2 | Get-ScsiController
Retrieves the SCSI controllers of the VM1 and VM2 virtual machines.
Example 2
Get-VM VM | Get-Snapshot Snapshot | Get-ScsiController
Retrieves the SCSI controllers of a virtual machine snapshot.
Example 3
$disk = Get-VM VM | Get-HardDisk | Select -First 2
Get-ScsiController -HardDisk $disk
Retrieves the SCSI controllers of the first two hard disks of a virtual machine.
Related Commands
ScsiController
This cmdlet retrieves the virtual SCSI controllers assigned to the specified HardDisk, VirtualMachine, Template, and Snapshot objects.
This cmdlet modifies the specified SCSI controllers.
This cmdlet creates a new SCSI controller.
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.