VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

pipeline_powercli

Hi Luc,

could you check following screenshot .

here it started with get-vm command and continue using pipeline for filtering poweredon vms.after that one more pipe to get datastore .

is it possible to change the object type from virtualmachine to datastore .

$_ will remain vmobject till the end of pipeline or can it be altered??

pastedImage_0.png

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

No, you will have a Datastore object at that point.
This is an issue with intellisense.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

No, you will have a Datastore object at that point.
This is an issue with intellisense.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

Not sure how it happened but its a serious bug   ,

entirely changing the concept of pipeline.should I switch to some other IDE.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

The Visual Studio Code (VSC) editor PowerShell extension shows the same behaviour.

Not sure if there are any IDE that do this correctly.

Btw, you seriously should consider moving to the VSC.

This is not really a PowerShell issue like I said, it's an intellisense flaw.
I suggest you open an issue on the VSC PowerShell Extension git.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot
Jump to solution

Thanks I m checking this.

0 Kudos