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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.