Forum Discussion
Ricey_
Jan 29, 2021Copper Contributor
Total physical memory attribute graph location
Hey All, I'm currently looking for where the "Total physical memory" attribute under hardware on an intune device is stored in Graph. I'm searching in https://graph.microsoft.com/beta/deviceMana...
Hey Ricey_,
you have to query for it explicitly by using select, otherwise you will always get back 0...
https://graph.microsoft.com/beta/deviceManagement/manageddevices('123-123-123-123-123')?$select=id,hardwareinformation,activationLockBypassCode,iccid,udid,roleScopeTagIds,ethernetMacAddress,processorArchitecture,physicalMemoryInBytes
[...]
"processorArchitecture": "x64",
"physicalMemoryInBytes": 2147483648,
[...]
This way you will get the values you are searching for.
best,
Oliver
AlanL1969
Nov 16, 2021Copper Contributor
Not working for me.
"error": {
"code": "BadRequest",
"message": "Parsing OData Select and Expand failed: Term 'id,hardwareinformation,activationLockBypassCode,iccid,udid,roleScopeTagIds,ethernetMacAddress,processorArchitecture,physicalMemoryInBytes [...] \"processorArchitecture\": \"x64\", \"physicalMemoryInBytes\": 2147483648, [...]' is not valid in a $select or $expand expression.",