MS 365 Defender Integration Error

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Please sign in to see details of an important advisory in our Customer Advisories area.

MS 365 Defender Integration Error

L1 Bithead



I'm installing MS 365 Defender Addon using the guide (, and the "Self-Deployed Application - Client Credentials Flow" method.


I have registered the app in Azure, and configured the addon with the App data (App Id, Secret, Tenant Id...) as in the guide.


When I execute the "!microsoft-365-defender-auth-start" command, I get an error:




I have tested different values in the fields, but the command always returns this error.


How can I debug this error? Any clue?


Thanks for your help!!



1 accepted solution

Accepted Solutions

L3 Networker

L2 Linker

Hi , 

If its still not resolved, May be best to create a support case. 

For debugging, change the log level in the integration as well as application level to debug mode and try running this a few time.

You can check to see if there more info in the logs or attach the logs in support case.

L3 Networker

For client credential flow you don't have to run that command, the integration should be ready to pull incidents. AFAIK auth-start starts the device code flow


L3 Networker

Also don't forget to check the box where it says self deployed in the integration configuration


mmmm may be this is the point, I'm testing.

Anyway, when executing the "microsoft-365-defender-advanced-hunting" command i get an error:

Invalid URL '': No scheme supplied. Perhaps you meant

Reading the doc (, it says that the endpoint URL is "../api/advancedqueries/run", so I'm going to do some tests.





L3 Networker

Really, I'm getting crazy with O365 APIs...

Thanks for your help, I go on with testing 🙂

  • 1 accepted solution
  • 6 replies
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!