PowerCLI-Example-Scripts icon indicating copy to clipboard operation
PowerCLI-Example-Scripts copied to clipboard

VMware.Hv.Helper does not set the VGPUGridProfile variable from Json

Open lindenjonas opened this issue 5 years ago • 2 comments
trafficstars

In the Json spec when creating a Desktop Pool, there is a property called DesktopSettings.displayProtocolSettings.pcoipDistplaySettings.VGPUGridProfile . The $VGPUGridProfile variable is NOT being set from the Json object. This causes the New-HVPool function to fail when you want vGPU support. The code should be equivalent to the code for the enableGRIDvGPUs property.

lindenjonas avatar Dec 18 '19 08:12 lindenjonas

I second this. I've been looking for a way to enable this option.

BubblyRobot avatar Dec 20 '19 16:12 BubblyRobot

It's a quite easy fix. In VMware.HV.Helper.psm1 (version 1.3.1) add two lines.

after line 4526: $VGPUGridProfile = $jsonObject.DesktopSettings.displayProtocolSettings.pcoipDisplaySettings.VGPUGridProfile

after line 4849: $desktopPCoIPDisplaySettings.getDataObject().VGPUGridProfile = $VGPUGridProfile

VMware.HV.Helper.zip

lindenjonas avatar Jan 10 '20 10:01 lindenjonas