This repository of PowerShell sample scripts show how to access Intune service resources. They demonstrate this by making HTTPS RESTful API requests to the Microsoft Graph API from PowerShell.
MIT License
1.33k
stars
653
forks
source link
Not getting correct values in the API response for a bunch of fileds #242
The issue I am facing is that there are some fields in the API Response that are returning an incorrect response. I am either getting null or 0 in the API response even though I can see the data is present in the Intune Portal. And I cannot use the GET API to get the details for each device since that can be very costly, I can only use the LIST API Endpoint.
I have also tried using the beta API but I am facing the same issue with that as well
Below is the list of fields for which I am getting an incorrect response.
I am also attaching a screenshot below for some of the fields.
As you can see in the above screenshot the physicalMemoryInBytes field is simply returning 0 when I can see the data populated in the Intune Portal. Similarly there are a bunch of fields returning null when I can see that data in the Intune Portal as well.
I am trying to call the LIST API to get the details of all the managed devices present in Intune. I am using the below API endpoint for that. GET https://graph.microsoft.com/v1.0/deviceManagement/managedDevices
The issue I am facing is that there are some fields in the API Response that are returning an incorrect response. I am either getting
null
or0
in the API response even though I can see the data is present in the Intune Portal. And I cannot use the GET API to get the details for each device since that can be very costly, I can only use the LIST API Endpoint.I have also tried using the beta API but I am facing the same issue with that as well
Below is the list of fields for which I am getting an incorrect response.
I am also attaching a screenshot below for some of the fields.
As you can see in the above screenshot the
physicalMemoryInBytes
field is simply returning0
when I can see the data populated in the Intune Portal. Similarly there are a bunch of fields returningnull
when I can see that data in the Intune Portal as well.