MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

ServicePrincipalAuthentication not working

Open heetvachhani opened this issue 7 years ago • 2 comments

I'm passing correct credentials for the Authentication but its still not working and gives error : "AADSTS700016: Application with identifier '<userName>' was not found in the directory <tenentID>". Also how can we use this in automated manner if it requires password, as our org policy requires to update password every two month. Please suggest if I can use any alternative to log in to workspace from notebook in completely automated manner. Thanks!


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

heetvachhani avatar Jan 25 '19 17:01 heetvachhani

Double-check you're passing in service principal Id as username, and service principal key as password.

Regarding the second question, you could set the id & key as environment variables in your automated process, and then read them using os.environ.get within the notebook.

rastala avatar Jan 28 '19 15:01 rastala

We hope this solves your issue. If not, please reopen the issue. Thank you.

j-martens avatar Jan 31 '19 17:01 j-martens