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
Post a Comment