Connect to Azure DevOps repository using service principle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2021 05:27 AM
My source code is in the VSTS repository and I am using PAT token to connect VSTS from Azure data bricks notebook and then building packages and installing my cluster. For the production environment, I can't use PAT token, so is there any way to connect to VSTS DevOps repo using service principle.
I could able to connect source control (VSTS) from databricks notebook and clone the source code, build packages using pip, and install it. But in order to connect source control from Azure notebook, I am using PAT token created in VSTS. Because of security reasons, I can't use PAT to connect source control instead I have to use another authentication method, so the question is whether I can use a service principal to connect VSTS source control from databricks notebook.
- Labels:
-
Azure
-
Azure DevOps
-
Service principle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2021 02:32 PM
Can you provide a bit more information about what you are attempting to do?
You have a repository that is cloned inside a development Databricks environment, and you are unable to connect the same repository in a production Databricks environment?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2023 01:50 AM
Hey everyone
I've been working with Azure DevOps and VSTS repositories, and I can relate to the challenges of connecting them securely. thushar, I understand your concern about using a PAT token for production environments. Fortunately, there is indeed a way to connect to VSTS DevOps repo using a service principal.
Instead of relying on a PAT token, you can leverage a service principal authentication method. Service principals provide a more secure approach for accessing resources in Azure. By creating a service principal and granting it appropriate permissions, you can establish a connection to your VSTS source control from your Databricks notebook.
To get started, you'll need to create a service principal in Azure Active Directory (AAD) and assign it the necessary permissions to access your VSTS repository. Once you have the service principal credentials, you can use them to authenticate and interact with the VSTS repository directly from your notebook.
Remember to carefully manage and secure the service principal credentials, as provide access to your resources. Regularly rotate and monitor the credentials to maintain a high level of security.