VMware Cloud Community
asingh1711
Contributor
Contributor

Help needed in writing powercli code to add shared pci device on Virtual Machine

Need to automate process to add pci device on VM where I can pass argument as vgpu profile

Tags (1)
0 Kudos
4 Replies
LucD
Leadership
Leadership

0 Kudos
asingh1711
Contributor
Contributor

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

0 Kudos
LucD
Leadership
Leadership

That is exactly what the New-vGPU function in there is doing.


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

0 Kudos
asingh1711
Contributor
Contributor

I used the New-vGPU function, it worked for me.

Thanks for all your help.

0 Kudos