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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
rustym94
Frequent Visitor

OData feed - Web API key can only be specified when a web API key name is provided

I created a custom report to report on machines via Defender by following the guide below using Odatafeed

 

https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/api-power-bi?view=o365-wo...

 

I am able to authenticate myself using my own credentials however I need to authenticate via Web API, so I created an app registration following the guide below and granted Read access within permissions for Defender machines.

 

https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/exposed-apis-create-app-w...

 

I ran into the error "Web API key can only be specified when a web API key name is provided", however whenever I tried to add the API Key name by adding [ApiKeyName="Testkey"] I get the following error.

rustym94_1-1678975319725.png

 

 

1 REPLY 1
lbendlin
Super User
Super User

I recommend you read through this thread OData.Feed command with query and options no worki... - Microsoft Power BI Community

especially a couple pages down they discuss the correct syntax.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.