Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mbelsis
Regular Visitor

(400) Bad Request : MS Defender Connection

Dear Community, 

 

I am quite new to PowerBI .

 

 

I am trying to use a Microsoft shared MS Defender report  (https://github.com/Azure/Azure-Sentinel/tree/master/Tools/MDO%20Power%20BI%20Dashboard#how-to-use-th...

 

We are an MS Defender Customer and I have PowerBI Pro license . 

 

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. :

Web.Contents failed to get contents from 'https://api.security.microsoft.com/api/advancedhunting/?key=EmailEvents%20%7C%20where%20Timestamp%20...' (400): Bad Request

 

I suspect that it has to do something with the MS Defender Schema...anyway ideas or how to correct it or how to troubleshoot ?

 

Does the PowerBI Desktop has any more detailed debug logs ?

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mbelsis ,

 

You can follow the step as below to diagnostic logs in Power BI Desktop.

File> Options and settings > Options > Diagnostics

RicoZhou_0-1667811267207.png

For reference:

Power BI Desktop diagnostics collection

Here is an offical blog about common Microsoft 365 Defender REST API error codes. I hope it could help you solve your issue.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @mbelsis ,

 

You can follow the step as below to diagnostic logs in Power BI Desktop.

File> Options and settings > Options > Diagnostics

RicoZhou_0-1667811267207.png

For reference:

Power BI Desktop diagnostics collection

Here is an offical blog about common Microsoft 365 Defender REST API error codes. I hope it could help you solve your issue.

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors