This commit is contained in:
Meghan Stewart 2023-01-24 10:40:17 -08:00
parent eb0cfbded1
commit 8af7b32e0e
3 changed files with 8 additions and 6 deletions

View File

@ -24,7 +24,7 @@ In this tutorial, you will:
## Prerequisites ## Prerequisites
? This requires an extra license at the moment correct? Of does the client have to be listed as intune managed ate the moment? ? This requires an extra license at the moment correct? Of does the client have to be listed as intune managed at the moment?
## Open Graph Explorer ## Open Graph Explorer

View File

@ -18,18 +18,20 @@ Displays the AzureAD ID and name of all devices:</br>
Displays the AzureAD ID for a device name that starts with `Test`:</br> 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` `GET https://graph.microsoft.com/v1.0/devices?$filter=startswith(displayName, 'Test')&$select=deviceid,displayName`
### Add a request header ### 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). 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. In Graph Explorer, select the **Request headers** tab.
1. For **Key** type in `ConsistencyLevel` then type `eventual` for **Value**. 1. For **Key** type in `ConsistencyLevel` and for **Value**, type `eventual`.
1. Select the **Add** button. When you're finished, remove the request header by selecting the trash can icon. 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"::: :::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> Displays the name and operating system version for the device that has the AzureAD ID of `01234567-89ab-cdef-0123-456789abcdef`:</br>
`GET https://graph.microsoft.com/v1.0/devices?$search="deviceid:44bb2fa1-5bfe-44c7-9221-9c8ed64e1076"?$select=displayName,operatingSystemVersion` `GET https://graph.microsoft.com/v1.0/devices?$search="deviceid:01234567-89ab-cdef-0123-456789abcdef"?$select=displayName,operatingSystemVersion`
Find devices that don't have virtual machine listed as the model and that have a manufacturer listed: </br> 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` `GET https://graph.microsoft.com/v1.0/devices?$filter=model ne 'virtual machine' and NOT(manufacturer eq null)&$count=true&$select=deviceid,displayName,operatingSystemVersion`

View File

@ -24,6 +24,6 @@ For this tutorial, you'll use Graph Explorer to make requests to the [Microsoft
1. To make requests: 1. To make requests:
1. Select either GET, POST, PUT, PATCH, or DELETE from the drop-down list for the HTTP verb. 1. Select either GET, POST, PUT, PATCH, or DELETE from the drop-down list for the HTTP verb.
1. 1. Enter the request into the URL field.
1. If you need to modify the request body, you can do so in the **Request body** tab. 1. If you need to modify the request body, edit the **Request body** tab.
1. Select the **Run query** button. The results will appear in the **Response** window. 1. Select the **Run query** button. The results will appear in the **Response** window.