coding in M Query language...
My code to create a custom translation function:
letSource = Web.Contents("https://api.cognitive.microsoft.com/sts/v1.0", [Headers=[#"Ocp-Apim-Subscription-Key"="xxxxxxx"]])inSource
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 FoundDetails:DataSourceKind=WebDataSourcePath=https://api.cognitive.microsoft.com/sts/v1.0Url=https://api.cognitive.microsoft.com/sts/v1.0
I have tried many other names for the api key [Header]:apikeyapitokenAuthorization
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.
Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.
We spoke with Power BI Super User, Greg Deckler, about his charity work
Continue your learning in our online communities.