cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bohumil_Uhrin
Helper II
Helper II

Azure Cognitive services - "We couldn't authenticate with the credentials provided" error

Hi Power BI community!

Im trying to use Azure Cognitive services - Translator.

I created a resource in Azure:

 
 

azure.PNG

 

Now Im trying to create a query, but getting this error: "We couldn't authenticate with the credentials provided. Please try again."

 

My code look like this:

= Json.Document(Web.Contents("https://api.cognitive.microsofttranslator.com", [RelativePath="translate", Query=[
#"api-version" = "3.0", to="en"], Headers=[#"Ocp-Apim-Subscription-Key"="xxxxx-xxxxx", #"Content-Type"="application/json"], Content=Json.FromValue({[Text = "texto para traducir"]})]))

 

Im using anonymous access:

 

azure2.PNG

 

Could someone help me?

Thank you 🙂

 

 

1 REPLY 1
v-alq-msft
Community Support
Community Support

Hi, @Bohumil_Uhrin 

 

About Integrating Power BI with the Microsoft Azure Cognitive Services, you may refer to the following document to see if it helps.

 

Integrate Power BI with the Text Analytics Cognitive Service 

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors