i have to add 100 rdm luns(naa.XXXX) to multiple vms. Please help me to get this completed.
You can use the New-Harddisk cmdlet with the DeviceName parameter.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks for the swift response, i would like to specify the controller and unit number. I do not see any switch for unit number in the new-harddisk command.
That was not in your original question.That can be done, but then you will have to use an API method.Use the Search option in this community, there are quite a few examples available in here.