mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 13:27:23 +00:00
add queries for devices
This commit is contained in:
parent
d19dd964ea
commit
b046e3939c
@ -26,4 +26,10 @@ In this tutorial, you will:
|
|||||||
## Open Graph Explorer
|
## Open Graph Explorer
|
||||||
|
|
||||||
<!--Using include for Graph Explorer sign in-->
|
<!--Using include for Graph Explorer sign in-->
|
||||||
[!INCLUDE [Graph Explorer sign in](./includes/wufb-deployment-graph-explorer.md)]
|
[!INCLUDE [Graph Explorer sign in](./includes/wufb-deployment-graph-explorer.md)]
|
||||||
|
|
||||||
|
## Run queries to identify test devices
|
||||||
|
|
||||||
|
<!--Using include for Graph Explorer device queries-->
|
||||||
|
[!INCLUDE [Graph Explorer device queries](./includes/wufb-deployment-find-device-name.md)]
|
||||||
|
|
||||||
|
@ -29,3 +29,8 @@ In this tutorial, you will:
|
|||||||
|
|
||||||
<!--Using include for Graph Explorer sign in-->
|
<!--Using include for Graph Explorer sign in-->
|
||||||
[!INCLUDE [Graph Explorer sign in](./includes/wufb-deployment-graph-explorer.md)]
|
[!INCLUDE [Graph Explorer sign in](./includes/wufb-deployment-graph-explorer.md)]
|
||||||
|
|
||||||
|
## Run queries to identify test devices
|
||||||
|
|
||||||
|
<!--Using include for Graph Explorer device queries-->
|
||||||
|
[!INCLUDE [Graph Explorer device queries](./includes/wufb-deployment-find-device-name.md)]
|
@ -24,4 +24,9 @@ In this tutorial, you will:
|
|||||||
## Open Graph Explorer
|
## Open Graph Explorer
|
||||||
|
|
||||||
<!--Using include for Graph Explorer sign in-->
|
<!--Using include for Graph Explorer sign in-->
|
||||||
[!INCLUDE [Graph Explorer sign in](./includes/wufb-deployment-graph-explorer.md)]
|
[!INCLUDE [Graph Explorer sign in](./includes/wufb-deployment-graph-explorer.md)]
|
||||||
|
|
||||||
|
## Run queries to identify test devices
|
||||||
|
|
||||||
|
<!--Using include for Graph Explorer device queries-->
|
||||||
|
[!INCLUDE [Graph Explorer device queries](./includes/wufb-deployment-find-device-name.md)]
|
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
author: mestew
|
||||||
|
ms.author: mstewart
|
||||||
|
manager: aaroncz
|
||||||
|
ms.prod: w10
|
||||||
|
ms.collection: M365-modern-desktop
|
||||||
|
ms.topic: include
|
||||||
|
ms.date: 08/18/2022
|
||||||
|
ms.localizationpriority: medium
|
||||||
|
---
|
||||||
|
<!--This file is shared by deployment-service-drivers.md, deployment-service-expedited-updates.md, and the deployment-service-feature-updates.md articles. Headings may be driven by article context. 7512398 -->
|
||||||
|
|
||||||
|
You will need at least [Device.Read.All](/graph/permissions-reference#device-permissions) permission to display [device](/graph/api/resources/device) information.
|
||||||
|
|
||||||
|
Displays the AzureAD ID and name of all devices:</br>
|
||||||
|
`GET https://graph.microsoft.com/v1.0/devices?$select=deviceid,displayName`
|
||||||
|
|
||||||
|
Displays the AzureAD ID for a device name that starts with `Test`:</br>
|
||||||
|
`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](/graph/aad-advanced-queries).
|
||||||
|
|
||||||
|
1. In Graph Explorer, select the **Request headers** tab.
|
||||||
|
1. For **Key** type in `ConsistencyLevel` then type `eventual` for **Value**.
|
||||||
|
1. 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`:</br>
|
||||||
|
`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: </br>
|
||||||
|
`GET https://graph.microsoft.com/v1.0/devices?$filter=model ne 'virtual machine' and NOT(manufacturer eq null)&$count=true&$select=deviceid,displayName,operatingSystemVersion`
|
||||||
|
|
@ -8,7 +8,7 @@ ms.topic: include
|
|||||||
ms.date: 08/18/2022
|
ms.date: 08/18/2022
|
||||||
ms.localizationpriority: medium
|
ms.localizationpriority: medium
|
||||||
---
|
---
|
||||||
<!--This file is shared by deployment-service-drivers.md, deployment-service-expedited-updates.md, and the deployment-service-feature-updates.md articles. Headings may be driven by article context. -->
|
<!--This file is shared by deployment-service-drivers.md, deployment-service-expedited-updates.md, and the deployment-service-feature-updates.md articles. Headings may be driven by article context. 7512398 -->
|
||||||
|
|
||||||
For this tutorial, you'll use Graph Explorer to make requests to the [Microsoft Graph APIs](/graph/api/resources/windowsupdates-updates?view=graph-rest-beta&preserve-view=true) to retrieve, add, delete, and update data. For more information about using Graph Explorer, see [Get started with Graph Explorer](/graph/graph-explorer/overview).
|
For this tutorial, you'll use Graph Explorer to make requests to the [Microsoft Graph APIs](/graph/api/resources/windowsupdates-updates?view=graph-rest-beta&preserve-view=true) to retrieve, add, delete, and update data. For more information about using Graph Explorer, see [Get started with Graph Explorer](/graph/graph-explorer/overview).
|
||||||
|
|
||||||
@ -20,6 +20,6 @@ For this tutorial, you'll use Graph Explorer to make requests to the [Microsoft
|
|||||||
1. Select the **Modify permissions** tab in Graph Explorer.
|
1. Select the **Modify permissions** tab in Graph Explorer.
|
||||||
1. In the permissions dialog box, select the **WindowsUpdates.ReadWrite.All** permission then select **Consent**. You may need to sign in again to grant consent.
|
1. In the permissions dialog box, select the **WindowsUpdates.ReadWrite.All** permission then select **Consent**. You may need to sign in again to grant consent.
|
||||||
|
|
||||||
:::image type="content" source="../media/wufbds-graph-modify-permission.png" alt-text="Screenshot of the modify permissions tab in Graph Explorer":::
|
:::image type="content" source="../media/7512398-wufbds-graph-modify-permission.png" alt-text="Screenshot of the modify permissions tab in Graph Explorer":::
|
||||||
|
|
||||||
|
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 162 KiB |
Loading…
x
Reference in New Issue
Block a user