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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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