Need to automate process to add pci device on VM where I can pass argument as vgpu profile
Have you looked at Alan's http://www.virtu-al.net/2015/10/26/adding-a-vgpu-for-a-vsphere-6-0-vm-via-powercli/
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks for the reply, I went through the link already but I am not able to understand it clearly as I am newbie to powercli and trying to explore it.
Looking for any simple code if someone has modified it for their use.
I don't want to search for available vgpu devices which is making program lengthier and complex.
I have a specific vgpu profile and I want to assign it to a VM
That is exactly what the New-vGPU function in there is doing.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I used the New-vGPU function, it worked for me.
Thanks for all your help.