Error gridview via Get-AzWvdHostPool

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 3 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
stevens
Posts: 493
Last visit: Mon Sep 19, 2022 12:23 am
Has voted: 2 times

Error gridview via Get-AzWvdHostPool

Post by stevens »

Hi,

I'm loading Get-AzWvdHostPool in a gridview but then get error
Screenshot_1.png
Screenshot_1.png (6.91 KiB) Viewed 1387 times
Though error, it loads fine but errors keep popping up. Also when I close them, they reappear;
When I load limited set of properties via (Azure cmdlet to get hostpools from WVD) Get-AzWvdHostPool | select Name, HostPoolType, LoadBalancerType, MaxSessionLimit it loads without errors but I'd need all values

Can't I simply ignore the errors/preventing popups (could find out which property is the wrong type but that wouldn't help me a lot, it's a value I get via the cmdlet)?

S
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Error gridview via Get-AzWvdHostPool

Post by jvierra »

That happens when you try to insert an object into a field. You must only insert value type or objects that cast to strings.
This topic is 3 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked