MS Graph is a powerfull tool, and sometimes it's the only tool you can use if you don't want to spend hours of manually checking each device. Here is an example: I needed to delete some old stale devices from Entra ID, but since the device was rolled out with Autopilot, I had to go to Intune > Devices | Enrollment > Windows Autopilot devices. Here you can only see the devices by serial number and not computer name. So how can I find the S/N for the device, and since I don't actually have access to the device it's a bit tricky. Time to use MS Graph. First you need to find the Azure Device ID in Entra ID portal, then you have to use this ID with MS Graph. You can use the web portal for MS Graph and use this code (just change the actual ID number to the one your device have):
https://graph.microsoft.com/v1.0/deviceManagement/windowsAutopilotDeviceIdentities?$filter=azureActiveDirectoryDeviceId
eq '{a27de3c6-0d70-4c8a-9f92-04b42334d311}'
Link to MS Graph Explorer: Graph Explorer | Try Microsoft Graph APIs - Microsoft Graph
Comments