<?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 (400) Bad Request : MS Defender Connection in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/400-Bad-Request-MS-Defender-Connection/m-p/2885062#M39565</link>
    <description>&lt;P&gt;Dear Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am quite new to PowerBI .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use a Microsoft shared MS Defender report &amp;nbsp;(&lt;A href="https://github.com/Azure/Azure-Sentinel/tree/master/Tools/MDO%20Power%20BI%20Dashboard#how-to-use-the-pbit-file" target="_blank" rel="noopener"&gt;https://github.com/Azure/Azure-Sentinel/tree/master/Tools/MDO%20Power%20BI%20Dashboard#how-to-use-the-pbit-file)&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are an MS Defender Customer and I have PowerBI Pro license .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that when I open the report in PowerBI Desktop, I receive the following error for every table that the report is using i.e. :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Web.Contents failed to get contents from '&lt;A href="https://api.security.microsoft.com/api/advancedhunting/?key=EmailEvents%20%7C%20where%20Timestamp%20%3Eago(30d)%20%7C%20where%20isnotempty(ThreatTypes)%20%7C%20summarize%20count()%20by%20SenderFromDomain,%20bin(Timestamp,%201d)%20%7C%20sort%20by%20count_%20%20%7C%20take%2015" target="_blank" rel="noopener"&gt;https://api.security.microsoft.com/api/advancedhunting/?key=EmailEvents%20%7C%20where%20Timestamp%20%3Eago(30d)%20%7C%20where%20isnotempty(ThreatTypes)%20%7C%20summarize%20count()%20by%20SenderFromDomain,%20bin(Timestamp,%201d)%20%7C%20sort%20by%20count_%20%20%7C%20take%2015&lt;/A&gt;' (400): Bad Request&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect that it has to do something with the MS Defender Schema...anyway ideas or how to correct it or how to troubleshoot ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the PowerBI Desktop has any more detailed debug logs ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 09:05:11 GMT</pubDate>
    <dc:creator>mbelsis</dc:creator>
    <dc:date>2022-11-04T09:05:11Z</dc:date>
    <item>
      <title>(400) Bad Request : MS Defender Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/400-Bad-Request-MS-Defender-Connection/m-p/2885062#M39565</link>
      <description>&lt;P&gt;Dear Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am quite new to PowerBI .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use a Microsoft shared MS Defender report &amp;nbsp;(&lt;A href="https://github.com/Azure/Azure-Sentinel/tree/master/Tools/MDO%20Power%20BI%20Dashboard#how-to-use-the-pbit-file" target="_blank" rel="noopener"&gt;https://github.com/Azure/Azure-Sentinel/tree/master/Tools/MDO%20Power%20BI%20Dashboard#how-to-use-the-pbit-file)&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are an MS Defender Customer and I have PowerBI Pro license .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that when I open the report in PowerBI Desktop, I receive the following error for every table that the report is using i.e. :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Web.Contents failed to get contents from '&lt;A href="https://api.security.microsoft.com/api/advancedhunting/?key=EmailEvents%20%7C%20where%20Timestamp%20%3Eago(30d)%20%7C%20where%20isnotempty(ThreatTypes)%20%7C%20summarize%20count()%20by%20SenderFromDomain,%20bin(Timestamp,%201d)%20%7C%20sort%20by%20count_%20%20%7C%20take%2015" target="_blank" rel="noopener"&gt;https://api.security.microsoft.com/api/advancedhunting/?key=EmailEvents%20%7C%20where%20Timestamp%20%3Eago(30d)%20%7C%20where%20isnotempty(ThreatTypes)%20%7C%20summarize%20count()%20by%20SenderFromDomain,%20bin(Timestamp,%201d)%20%7C%20sort%20by%20count_%20%20%7C%20take%2015&lt;/A&gt;' (400): Bad Request&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect that it has to do something with the MS Defender Schema...anyway ideas or how to correct it or how to troubleshoot ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the PowerBI Desktop has any more detailed debug logs ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 09:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/400-Bad-Request-MS-Defender-Connection/m-p/2885062#M39565</guid>
      <dc:creator>mbelsis</dc:creator>
      <dc:date>2022-11-04T09:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: (400) Bad Request : MS Defender Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/400-Bad-Request-MS-Defender-Connection/m-p/2888711#M39596</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/466899"&gt;@mbelsis&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can follow the step as below to diagnostic logs in Power BI Desktop.&lt;/P&gt;
&lt;P&gt;File&amp;gt; Options and settings &amp;gt; Options &amp;gt; Diagnostics&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1667811267207.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/817982iD9E033731EDD7496/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1667811267207.png" alt="RicoZhou_0-1667811267207.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For reference:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/fundamentals/desktop-diagnostics" target="_self"&gt;Power BI Desktop diagnostics collection&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is an &lt;A href="https://learn.microsoft.com/en-us/microsoft-365/security/defender/api-error-codes?view=o365-worldwide" target="_self"&gt;offical blog&lt;/A&gt; about common Microsoft 365 Defender REST API error codes. I hope it could help you solve your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 08:59:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/400-Bad-Request-MS-Defender-Connection/m-p/2888711#M39596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-07T08:59:41Z</dc:date>
    </item>
  </channel>
</rss>

