---
title: Configure authentication to Azure DevOps
description: Configure a Microsoft Entra service principal for authentication from the managed Azure DevOps connector in Databricks Lakeflow Connect.
canonical_url: https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/azure-devops-source-setup
---

# Configure authentication to Azure DevOps

> [!NOTE]
> **Beta**
>
> This feature is in [Beta](https://docs.databricks.com/aws/en/release-notes/release-types.md). To use it, a workspace admin must turn on **Lakeflow Connect for Azure DevOps** from the **Previews** page. See [Manage Databricks previews](https://docs.databricks.com/aws/en/admin/workspace-settings/manage-previews.md).

This page shows how to configure Azure DevOps to enable authentication from Databricks for the Azure DevOps connector. Use the credentials retrieved from the steps on this page to create a Unity Catalog connection in Databricks.

## <a id="prerequisites" />Prerequisites

* An Azure DevOps organization connected to a Microsoft Entra tenant. See [Use service principals and managed identities](https://learn.microsoft.com/azure/devops/integrate/get-started/authentication/service-principal-managed-identity).
* Permission to register an application in Microsoft Entra ID.
* Permission to add users to the Azure DevOps organization. A member of **Project Collection Administrators** can add the service principal.

## <a id="configure-source" />Configure Azure DevOps

The connector authenticates as a Microsoft Entra service principal. Register an application in Microsoft Entra ID, then add its service principal to your Azure DevOps organization. See [Use service principals and managed identities](https://learn.microsoft.com/azure/devops/integrate/get-started/authentication/service-principal-managed-identity).

### <a id="register-an-application" />Register a Microsoft Entra application

1. In the [Microsoft Entra admin center](https://entra.microsoft.com), select **App registrations** > **New registration**.
2. Enter a descriptive name and select the supported account type for your application.
3. Leave **Redirect URI** empty.
4. Click **Register**.
5. On the application **Overview** page, note the **Application (client) ID** and **Directory (tenant) ID**.

### <a id="create-a-client-secret" />Create a client secret

1. In **App registrations**, select your application.
2. Select **Certificates & secrets** > **Client secrets** > **New client secret**.
3. Add a description, select an expiration, and click **Add**.
4. Note the client secret **Value**. Microsoft Entra ID doesn't display it again after you leave the page.

See [Add and manage app credentials in Microsoft Entra ID](https://learn.microsoft.com/entra/identity-platform/how-to-add-credentials).

### <a id="add-service-principal" />Add the service principal to Azure DevOps

1. In Azure DevOps, select **Organization settings** > **Users**.
2. Select **Add users**.
3. Enter the display name of the service principal.
4. Select the **Basic** access level and the projects to ingest. Azure Repos access requires **Basic** or a higher access level. **Stakeholder** access doesn't include Azure Repos.
5. Select **Add**.

Azure DevOps doesn't use Microsoft Entra application permissions to authorize the service principal. Grant access through the access level, project membership, and Azure DevOps group memberships. The connector ingests only the projects and resources that the service principal can access.

## <a id="next-steps" />Next steps

Create an Azure DevOps connection in Databricks. See [Create an Azure DevOps connection](https://docs.databricks.com/aws/en/ingestion/lakeflow-connect/azure-devops-connection.md).
