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.
Post Reply
User avatar
stevens
Posts: 440
Joined: Wed Jun 15, 2016 2:26 am

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 135 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: 14666
Joined: Tue May 22, 2007 9:57 am
Answers: 5
Has voted: 1 time
Been upvoted: 5 times
Contact:

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.

Post Reply