Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataSource.Error: Web.Contents failed to get contents - (400): Bad Request #5

Closed
jpellois opened this issue Jun 15, 2020 · 4 comments
Closed

Comments

@jpellois
Copy link

Hello,

The example "Administration and Management" seems not working today (monday 06-15-2020)
It was working on friday 06-12-2020

2 datasources said the same error :

DataSource.Error: Web.Contents failed to get contents from 'https://api.securitycenter.windows.com/api/advancedqueries?key=MachineInfo%20%7C%20where%20EventTime%20%3E=%20ago(7d)' (400): Bad Request

DataSource.Error: Web.Contents failed to get contents from 'https://api.securitycenter.windows.com/api/advancedqueries?key=MachineInfo%20%7C%20where%20EventTime%20%3E%20ago(7d)%20%7C%20distinct%20MachineId,%20ComputerName,%20ClientVersion,%20PublicIP,%20OSArchitecture,%20OSPlatform,%20OSBuild,%20OsVersion,%20IsAzureADJoined,%20LoggedOnUsers,%20RegistryMachineTag,%20MachineGroup' (400): Bad Request

I don't remember i have change something on my configuration but i could be wrong.

Is there a change in the Microsoft Defender ATP public API ?

Best Regards

@sdaaish
Copy link

sdaaish commented Jun 17, 2020

I have the same problem with the file TVM that fails on the advancedqueries.

Get 404, for these.
image

@jpellois
Copy link
Author

Hello,
the file TVM works fine for me.
Your screenshot is from "Administration and Management" file.
I have the same error (400 - bad request)

@sdaaish
Copy link

sdaaish commented Jun 17, 2020

OK, sorry, you're right it is the management-file, I just looked in my Download folder and I looked at the wrong file. TVM is working for me too, but Administration and management is not.

@sdaaish
Copy link

sdaaish commented Jun 17, 2020

And I fixed it myself by editing the file. Apparently MachineId is now DeviceID, and EventTime is Timestamp. ComputerName is now DeviceName.
Casing is important.

I'm not sure everything is OK but at least I got the dashboard to show something.
And I'm very new to PowerBI so i don't really have a clue what I'm doing. Just clicking on stuff until it works.

I tried the questions in API explorer, thats how I found out what worked or not.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants