windows-itpro-docs/windows/deployment/update/includes/wufb-deployment-find-device-name.md
2023-01-23 15:27:45 -08:00

2.1 KiB

author, ms.author, manager, ms.prod, ms.collection, ms.topic, ms.date, ms.localizationpriority
author ms.author manager ms.prod ms.collection ms.topic ms.date ms.localizationpriority
mestew mstewart aaroncz w10 M365-modern-desktop include 08/18/2022 medium

You will need at least Device.Read.All permission to display device information.

Displays the AzureAD ID and name of all devices:
GET https://graph.microsoft.com/v1.0/devices?$select=deviceid,displayName

Displays the AzureAD ID for a device name that starts with Test:
GET https://graph.microsoft.com/v1.0/devices?$filter=startswith(displayName, 'Test')&$select=deviceid,displayName

Add a request header

For the next requests, set the ConsistencyLevel header to eventual. For more information about advanced query parameters, see Advanced query capabilities on Azure AD directory objects.

  1. In Graph Explorer, select the Request headers tab.

  2. For Key type in ConsistencyLevel then type eventual for Value.

  3. Select the Add button. When you're finished, remove the request header by selecting the trash can icon.

    :::image type="content" source="../media/7512398-deployment-service-graph-modify-header.png" alt-text="Screenshot of the request headers tab in Graph Explorer":::

Displays the name and operating system version for the device that has the AzureAD ID of 44bb2fa1-5bfe-44c7-9221-9c8ed64e1076:
GET https://graph.microsoft.com/v1.0/devices?$search="deviceid:44bb2fa1-5bfe-44c7-9221-9c8ed64e1076"?$select=displayName,operatingSystemVersion

Find devices that don't have virtual machine listed as the model and that have a manufacturer listed:
GET https://graph.microsoft.com/v1.0/devices?$filter=model ne 'virtual machine' and NOT(manufacturer eq null)&$count=true&$select=deviceid,displayName,operatingSystemVersion