physicalMemoryInBytes always returns 0

Copper Contributor

I followed the blog below,


Here is my API endpoint.'1111-2222-3333-abc4-55aa55bb55')?$select=id,physicalMemoryInBytes


Here is the response,



The expected response is 32GB (in bytes).


Can someone please help?


6 Replies

Have the same issue when using id, physicalMemoryInBytes. But.. If you use
?$select=hardwareinformation,physicalMemoryInBytes it does show it :)
"@odata.context": "$metadata#deviceManagement/managedDevices(hardwareInformation,physi...",
"physicalMemoryInBytes": 34359738368,
"hardwareInformation": {

Did this answer your question?
Thanks Harm, but unfortunately this isn't resolving this issue for me

I have replicated your query exactly, but firstly Graph does not recognize the property hardwareInformation : Parsing OData Select and Expand failed: Could not find a property named 'hardwareInformation' on type 'microsoft.graph.managedDevice'.

I've tried similar queries replacing hardwareInformation with other random properties, and the results always return as 0 for physicalMemoryInBytes. Tried devices of all OS types as well, and get the same result whether I query data for all devices or a single device Id.

Here's an example query context
"@odata.context": "$metadata#deviceManagement/managedDevices(operatingSystem,physicalM...",
"operatingSystem": "Windows",
"physicalMemoryInBytes": 0

No matter what I try, always getting 0. The only thing I can think of is because it's defaulting to v1.0 instead of Beta? Or this is just broken

First I tried the Graph PowerShell SDK (because I prefer PowerShell, naturally), but I get 0 values for physicalMemoryInBytes for all devices returned from this command:

Not finding anything else on the net, I wonder if this has been raised with MS..

I need to pull a report on company inventory including RAM :(
Think I'm going to do it manually from Intune GUI. Lucky not such a big tenant in this case, but really should expect this should work by now?
Surely I'm not the only one who still needs to get device inventory including Memory size, unless there's a different location to get it..
Have tried that too in the last few months, nothing :( I see more people asking for this information, but no response/update yet'<insert your deviceID here>')?$select=id,hardwareinformation,physicalMemoryInBytes

That will return the physicalMemory. Note that it won't work for /v1.0, only /beta. We haven't updated the v1.0 schema with that information yet, that's why it's failing for you. Currently the only solution is to include hardwareInformation in the $select clause along with the physicalMemoryInBytes property.

Total Memory in Bytes. Return default value 0 in LIST managedDevices. Real value only returned in singel device GET call with device id and included in select parameter. Supports: $select. Default value is 0. Read-only. This property is read-only.