This should be relatively easy but for some reason is not. I'm trying to add a hard disk using New-Harddisk, but I need to use the -Controller switch. I just can't quite figure out where the scsi controller names are.
Get-Cluster -name “TESTCLUSTER” | Get-VM -name TESTVM_* | ForEach {
New-harddisk -vm $_ -CapacityKB 1073741824 -Controller ????
}
I've tried a few different things but I won't list them all here. I repeatedly get a message from PowerCLI "Could not ScsiController with name xxxx". This should be very easy but I can't seem to find any samples that cover this switch, nor does the documentation seem to have any samples.
Thanks in advance!
Brent