physicalMemoryInBytes always returns 0

%3CLINGO-SUB%20id%3D%22lingo-sub-3025721%22%20slang%3D%22en-US%22%3EphysicalMemoryInBytes%20always%20returns%200%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3025721%22%20slang%3D%22en-US%22%3E%3CP%3EI%20followed%20the%20blog%20below%2C%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-intune%2Ftotal-physical-memory-attribute-graph-location%2Fm-p%2F2108126%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-intune%2Ftotal-physical-memory-attribute-graph-location%2Fm-p%2F2108126%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20my%20API%20endpoint.%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FdeviceManagement%2Fmanageddevices%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FdeviceManagement%2Fmanageddevices%3C%2FA%3E('%3CSPAN%20class%3D%22%22%3E1111-2222-3333-abc4-55aa55bb55%3C%2FSPAN%3E')%3F%24select%3Did%3CSPAN%20class%3D%22%22%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22%22%3EphysicalMemoryInBytes%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EHere%20is%20the%20response%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%7B%22%40odata.context%22%3A%22%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2F%24metadata%23deviceManagement%2FmanagedDevices(id%2CphysicalMemoryInBytes)%2F%24entity%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2F%24metadata%23deviceManagement%2FmanagedDevices(id%2CphysicalMemoryInBytes)%2F%24entity%3C%2FA%3E%22%2C%22id%22%3A%22%3CSPAN%20class%3D%22%22%3E1111-2222-3333-abc4-55aa55bb55%3C%2FSPAN%3E%22%2C%22%3CFONT%20color%3D%22%23FF0000%22%3EphysicalMemoryInBytes%22%3A0%3C%2FFONT%3E%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EThe%20expected%20response%20is%2032GB%20(in%20bytes).%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3ECan%20someone%20please%20help%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3025721%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

I followed the blog below,

https://techcommunity.microsoft.com/t5/microsoft-intune/total-physical-memory-attribute-graph-locati...

 

Here is my API endpoint. 

https://graph.microsoft.com/beta/deviceManagement/manageddevices('1111-2222-3333-abc4-55aa55bb55')?$select=id,physicalMemoryInBytes

 

Here is the response,

{"@odata.context":"https://graph.microsoft.com/beta/$metadata#deviceManagement/managedDevices(id,physicalMemoryInBytes)...","id":"1111-2222-3333-abc4-55aa55bb55","physicalMemoryInBytes":0}

 

The expected response is 32GB (in bytes).

 

Can someone please help?

 

1 Reply

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