LucD
Leadership
Leadership

Shouldn't the DeviceName value just be the LUN, without the '/vmfs/...' part?

New-HardDisk -VM $vm -DeviceName $UnassignedDisks.1disk -Datastore "MY_DATASTORE" -DiskType RawPhysical -Controller $SCSIController1


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference