Forum Discussion
ycd_tech
Dec 02, 2021Copper Contributor
physicalMemoryInBytes always returns 0
I followed the blog below, https://techcommunity.microsoft.com/t5/microsoft-intune/total-physical-memory-attribute-graph-location/m-p/2108126 Here is my API endpoint. https://graph.microsoft.c...
Feb 03, 2022
Did this answer your question?
- Simon1919Jun 17, 2022Brass ContributorThanks 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": "https://graph.microsoft.com/v1.0/$metadata#deviceManagement/managedDevices(operatingSystem,physicalMemoryInBytes)/$entity",
"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:
Get-MgDeviceManagementManagedDevice
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..- Jun 17, 2022Have tried that too in the last few months, nothing 😞 I see more people asking for this information, but no response/update yet
- Dave RandallJun 17, 2022Microsofthttps://graph.microsoft.com/beta/deviceManagement/manageddevices('<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.