cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Repos configuration for Azure Service Principal

pantelis_mare
Contributor III

Hello community!

I would like to update a repo from within my Azure DevOps release pipeline.

In the pipeline I generate a token using a AAD Service Principal as recommended, and I setup the databricks api using that token.

When I pass the databricks repos update command, I receive an authenitcation error, which is expected and the service principal has not git configured on the workspace side.

My question is:

Can I configure the repos for the SPN programmatically?

Or, is there a way to provide an Azure Devops token when I make the databricks api call? I have tried passing a token by setting the git AZURE_DEVOPS_EXT_PAT but it doesn't seem to work.

Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions

Srihasa_Akepati
Databricks Employee
Databricks Employee

@Pantelis Maroudisโ€‹ I would like to comment on the Azure SP supportability feature - Updating a databricks repo using Repos API to authenticate using Azure Service Principal AAD is not supported yet. Active work is in progress, We can expect it by Jan 2022.

View solution in original post

30 REPLIES 30

jose_gonzalez
Databricks Employee
Databricks Employee

Hi @Pantelis Maroudisโ€‹ ,

Let me reach out to the SME group to get help on your question.

Srihasa_Akepati
Databricks Employee
Databricks Employee

@Pantelis Maroudisโ€‹ I would like to comment on the Azure SP supportability feature - Updating a databricks repo using Repos API to authenticate using Azure Service Principal AAD is not supported yet. Active work is in progress, We can expect it by Jan 2022.

pantelis_mare
Contributor III

Thank you @Srihasa Reddy Akepatiโ€‹ . Looking forward to it ๐Ÿ™‚

JakeP
New Contributor III

Hello, curious if any update on this? I too would like to use AAD token auth (as service principal) to call repos POST and PATCH from an Azure DevOps pipeline. Thanks!

Hello @Jake Panchyshynโ€‹ 

From my side I used a separate token generated from account for all steps in my pipeline that needed to use the repos api

JakeP
New Contributor III

Thanks, though, could you elaborate as to what kind of token you generate as what account or identity? Are you authenticating as a user (rather than service principal) or ??

Sorry for the late reply @Jake Panchyshynโ€‹ .

Yes, I use a token generated from my account to interact with the repos API in my pipeline. For the rest of the operations (eg job creation) I use the token generated by the service principal

Kirk1
New Contributor III

Is this supported now given that it is past the Jan 2022 date stated above? Because I have found that a SPN still can't authenticate via AAD.

venkad
Contributor

Looking forward for this updateโ€‹

Ben_Templeton__
New Contributor III

@Srihasa Reddy Akepatiโ€‹  Any update on this?

Srihasa_Akepati
Databricks Employee
Databricks Employee

@Ben Templetonโ€‹ Iam checking internally on the status of this feature. I will update the thread once i receive response.

Kirk1
New Contributor III

I got this response from Databricks on this topic: "The AAD support depends on Microsoft implementing token exchange for ADO. This is underway but we don't have a timeline for it."

Martin1337
New Contributor II

Has there been any updates here? Or any viable workaround?โ€‹

The solution depends on accepting ServicePrincipal tokens credentials as authentication for ADO. There is mention of it on their roadmap (https://docs.microsoft.com/en-us/azure/devops/release-notes/features-timeline) but no timeline is defined yet.

As a workaround we use a user PAT for the time being.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group