Powershell Graph is case sensitive
I needed to get the deviceid from devices which were members of a group.
The deviceid is kept in the additionalproperties which is a multivated value.
To make myself easy, i placed all objects in a varable called Members. Then i tried to get the deviceid values:
"($Members.additionalProperties).deviceid" which returned nothing.
I looked at the value and saw that the Object is written as deviceId, so when i ran
"($Members.additionalProperties).deviceId" the proper device ID's were returned.
No comments:
Post a Comment