PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
Creating New-HVPool with NVIDIA A16 vGPU Profiles
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
- Exported an existing pool to a json file. This is scripted, using Get-HVPoolSpec
- Create new pool using New-HVPool -Spec
.json
...
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.