Microsoft Entra Suite Tech Accelerator
Aug 14 2024, 07:00 AM - 09:30 AM (PDT)
Microsoft Tech Community

Defender for Endpoint - PowerBI report

Copper Contributor


I'm currently developing multiple PowerBI reports for Defender for Endpoint where we utilize the advanced hunting query API described in this article here:


Have anyone here got the luck to utilize AAD app registrations with a client secret to provide access with powerbi, without the need of having to authenticate with a user account?

I'm trying to remove the need of having a service account or likewise to publish them as a report (as all accounts are using PIM / MFA).


Any ideas?

7 Replies
best response confirmed by AxelHellstroem (Copper Contributor)
I wrote an article on this. If you find any issues following let me know.
Incredible, thank you so much for writing this article.
Will test this out ASAP.
If you do face issues let me know would love to help you out.
This works really great. Only one thing should be added:
The (main) function should be named RunAHQuery in order for the queries to work with the function. Otherwise - this is a very good guide on how to work with BI & App registration.

Thank you so much for providing this.
Thanks can you clarify the RunAHQuery issues ? I am bit confused :)



The main query / function created in step 1 should be named "RunAHQuery".


Is there anyway I can reach out to you by teams or email to explain this a bit more?

Thought it could be a nice extension to your article:

This function can also be utilized to access the security graph API with client secret, which enables you to run advanced hunting queries on all Defender for M365 products :)

1 best response

Accepted Solutions
best response confirmed by AxelHellstroem (Copper Contributor)