<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Graph API queries for managed Devices in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Graph-API-queries-for-managed-Devices/m-p/1782986#M28958</link>
    <description>&lt;P&gt;Are you using the Graph Security third party connector, or standard Web.Contents calls?&amp;nbsp; Have you tried ODATA instead?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 17:55:13 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-04-13T17:55:13Z</dc:date>
    <item>
      <title>Graph API queries for managed Devices</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Graph-API-queries-for-managed-Devices/m-p/1780206#M28926</link>
      <description>&lt;P&gt;Hi Community!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to get information about managed devices we are using Graph API Queries like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$select=id,deviceCompliancePolicyStates" target="_blank" rel="noopener"&gt;https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$select=id,deviceCompliancePolicyStates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In Power Bi one can then expand&amp;nbsp;"deviceCompliancePolicyStates" colmn and process the data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we have an request to store this data permanently in the database with the bunch of other data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I`ve noticed that exactly the same query didn`t return "deviceCompliancePolicyStates" data if i use it via web request ( for example in PowerShell or&amp;nbsp;&lt;A href="https://developer.microsoft.com/en-us/graph/graph-explorer" target="_blank" rel="noopener"&gt;Graph Explorer - Microsoft Graph&lt;/A&gt;). I know its possible to retrieve the same data for every single device using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/{deviceId}/deviceCompliancePolicyStates" target="_blank" rel="noopener"&gt;https://graph.microsoft.com/v1.0/deviceManagement/managedDevices/{deviceId}/deviceCompliancePolicyStates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but it takes quite a while to process all data. $expand don`t work as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the question is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to retrieve exactly the same data from the query via web request, as they are displayed in Power BI?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 07:29:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Graph-API-queries-for-managed-Devices/m-p/1780206#M28926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-14T07:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Graph API queries for managed Devices</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Graph-API-queries-for-managed-Devices/m-p/1782986#M28958</link>
      <description>&lt;P&gt;Are you using the Graph Security third party connector, or standard Web.Contents calls?&amp;nbsp; Have you tried ODATA instead?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 17:55:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Graph-API-queries-for-managed-Devices/m-p/1782986#M28958</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-04-13T17:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Graph API queries for managed Devices</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Graph-API-queries-for-managed-Devices/m-p/1783946#M28981</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power BI we are using OData.Feed and we get all data we want. The problem is, that using exactly the same query not in Power BI, but in Powershell ( via Invoke-WebrRequest) we get less attributes. So how is that possible, that the same query retrievs different data, depending on method we are using for calls?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 07:38:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Graph-API-queries-for-managed-Devices/m-p/1783946#M28981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-14T07:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Graph API queries for managed Devices</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Graph-API-queries-for-managed-Devices/m-p/1784459#M28986</link>
      <description>&lt;P&gt;Most likely Power Query is automatically expanding the lookup fields. In Powershell you have to do that manually.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 11:25:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Graph-API-queries-for-managed-Devices/m-p/1784459#M28986</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-04-14T11:25:07Z</dc:date>
    </item>
  </channel>
</rss>

