powershell - How to determine a command output object? -


i understand concept of pipeline , fact powershell returns objects (as opposed text) , commands further down pipeline can access properties of these objects name or value.

what i'm struggling - how can find out object (and properties) returned specific powershell command? example, following valid powershell command:

get-azurevm -name "vmname" | select-object name,instancesize,location 

how know, without running it, get-azurevm returns object has name, instancesize , location properties?

without running use get-command cmdlet , query outputtype property @ least return object type. otherwise can pipe get-member cmdlet retrieve available properties , methods way recommend you.

get-azurevm -name "vmname" | get-member 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -