Looking for get-ntnxvm -SearchAttributeList syntax

  • 27 April 2020
  • 1 reply

Badge +1

Looking for get-ntnxvm -SearchAttributeList syntax.

Since the get-help doesn’t provide any information besides:  “Search attribute list, only searches on few attributes. For accurate search, provide field names”

Can someone provide an example of how to use this parameter? Most examples seem to use -searchstring.  I would like to search for vmname.  I know I can use a where clause and filter that way but curious if -SearchAttributeList could also do it.

1 reply

Badge +1

Looks like the -FilterCriteria criteria can also be used this way.  Any examples of the correct syntax for -FilterCriteria or -SearchAttributeList would be helpfu.