vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
743 stars 601 forks source link

Creating New-HVPool with NVIDIA A16 vGPU Profiles #626

Open yootzee opened 7 months ago

yootzee commented 7 months ago

Describe the bug

Creating a new Horizon Pool via New-HVPool using a JSON input file will fail (terminating) when using an A16 vGPU GRID profile (i.e. VGPUGridProfile: 'nvidia_a16_1b) for PcoipDisplaySettings.

Error is: MetadataError: The variable cannot be validated because the value nvidia_a16-1b is not a valid value for the VGPUGridPrifile variable

Reproduction steps

  1. Exported an existing pool to a json file. This is scripted, using Get-HVPoolSpec
  2. Create new pool using New-HVPool -Spec .json
  3. ...

Expected behavior

Create pool. Non-terminating error will be displayed about maxNumberOfMonitors and maxResolutionOfAyOneMonitor. But, these errors are expected and someone else has already opened an issue.

Additional context

I've updated the New-HVPool function in the PSM file to include 'nvidia_a16_1b' and 'nvidia_a16_2b' in the ValidateSet declaration and pool is created successfully.