How to authenticate to ML Classic from HTTP Request in Flow

Dave Chennault 46 Reputation points
2022-12-02T02:38:16.717+00:00

Hi - Hoping someone can help

Keep getting 401 error and cannot authenticate to a published Azure ML experiment using a Post in HTTP action within Flow

Guessing you use Basic authentication and supplied creds in action (as shown in the screenshot attached) but keep getting 401 error

See attached image of HTTP Post - anyone know how to authenticate so I can call Azure ML if created from flow?

I know it is possible but how???

Thx!

Stumped as I cannot find any documentation how to do it anywhere

Thx!

266358-post-screenshot.jpg

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,027 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 47,526 Reputation points Microsoft Employee
    2022-12-02T08:42:23.387+00:00

    @Dave Chennault I do not have experience using flow but I think in this case the authentication bearer token is not passed along with the headers. I have an old endpoint of the classic studio that is still running and the steps to use the endpoint through REST can be obtained by clicking the REQUEST/RESPONSE link of the endpoint page from the studio.

    266465-image.png

    I used postman to call the endpoint using the authorization method mentioned i.e Bearer token with the key mentioned in the endpoints page. Header value of Content-Type:application/json

    266505-image.png

    I hope this helps!!

    If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.