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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
JulianPayne_i4
Frequent Visitor

Azure Cognative Services - api not working...

coding in M Query language...

 

My code to create a custom translation function:

 

let
Source = Web.Contents("https://api.cognitive.microsoft.com/sts/v1.0", [Headers=[#"Ocp-Apim-Subscription-Key"="xxxxxxx"]])
in
Source

 

 

My result:


404 Error Resource Not found.....

 

DataSource.Error: Web.Contents failed to get contents from 'https://api.cognitive.microsoft.com/sts/v1.0' (404): Resource Not Found
Details:
DataSourceKind=Web
DataSourcePath=https://api.cognitive.microsoft.com/sts/v1.0
Url=https://api.cognitive.microsoft.com/sts/v1.0

 

 

 

I have tried many other names for the api key [Header]:
apikey
apitoken
Authorization

 

 

Why is the resource not found?

 

In Azure, the subscription gave me the url which I copy and pasted. I see other users using this URL - they have also had problems connecting.

 

I chose "Anonymous" authentication, as has been indicated.

0 REPLIES 0

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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