Share via

How to access Azure Devops from Databricks using a Service Principal

Lilac 80 Reputation points
2023-07-03T16:18:06.66+00:00

Hi. I am trying to install a package (Flask==2.0.2) from my Azure Devops portal using Databricks. For this purpose I am using a PAT and passing this in the %pip install statement in databricks. Now I have created a Service principal and used the same in my Service Connections in Azure Devops, but while using this, I am not able to run my pip install. I have scoured the net for a possible solution. Can you please help.

Azure Databricks
Azure Databricks

An Apache Spark-based analytics platform optimized for Azure.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Answer accepted by question author

Konstantinos Passadis 19,701 Reputation points MVP
2023-07-03T16:34:31.5966667+00:00

Hello @Kunal Chowdhury !

Welcome to Microsoft QnA!

Please tell us does the Service Principal has the Contributor Role ?

Also there is another thing you can try :

In Azure AD , go to Application Registrations , find your Service Principal and click API Permissions

Click ADD PERMISSIONS and select the DevOps API and add user_impersonation

Grant AdminConsent and try again , although we need more details on th error you are getting

what are the errors you are encountering ?

The more details we have the better help we can provide !

I hope this helps!

Kindly mark the answer as Accepted and Upvote in case it helped!

Regards

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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