0
votes

I have published a pipeline created inside azure machine learning service workspace, and i have its rest endpoint with me. I also have Service principal Id and secrets which have contributor access over the workspace. I am trying to invoke this pipeline thorough its rest endpoint from adf using the SPn id and secret. But i am getting forbidden error, is there a guideline how to schive it without using python SDKs.

1
I think i am not getting the bearer token correctly.... I am using login.microsoftonline.com/<subscriptionId>/oauth2/… passing the clientId, client secret and grant_type=client_credentials.... Is there other way to get the bearer token here in amls?Prashant Kumar

1 Answers

0
votes

Can you try first with bearer token produced by CLI: az account get-access-token --subscription

Does it work?