Request to Bing Search v7 API unauthorized

Eaglan Kurek 1 Reputation point
2020-11-12T05:29:08.203+00:00

Created a trial Azure account and added a Bing Search v7 resource.

Followed https://learn.microsoft.com/en-us/azure/cognitive-services/bing-web-search/quickstarts/client-libraries?pivots=programming-language-csharp

While using Microsoft.Azure.CognitiveServices.Search.WebSearch on my client (web app) to hit the API, I get Unauthorized errors although I'm using the keys provided from the portal.

Exact error: "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource"

Bing Web Search
Bing Web Search
A Bing service that gives you enhanced search details from billions of web documents.
135 questions
{count} votes