Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group-ObjectFast -Property Name are the same for each Group #5

Open
BrooksV opened this issue Jul 6, 2020 · 1 comment
Open

Group-ObjectFast -Property Name are the same for each Group #5

BrooksV opened this issue Jul 6, 2020 · 1 comment

Comments

@BrooksV
Copy link

BrooksV commented Jul 6, 2020

$vmObjs is an array of Azure VM objects

$vmObjs | Group-ObjectFast -Property osType | Select-Object -Property Count, Name, Values

Count Name    Values
----- ----    ------
 9482 Windows       
  292 Windows       
36837 Windows       

$vmObjs | Group-Object -Property osType | Select-Object -Property Count, Name, Values

Count Name    Values   
----- ----    ------   
 9482 Linux   {Linux}  
36837 Windows {Windows}
  292         {}       

Any thoughts on how to fix?

@TobiasPSP
Copy link
Owner

I am on vacation right now but will look afterwards. Seems to be an issue with how the key is generated...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants