Git Integration with Azure Databricks and Azure DevOps

In this assignment, you'll practice using Git within Azure Databricks and collaborate on code using Azure DevOps.

Prerequisites:

  • Access to an Azure Databricks workspace.
  • Access to an Azure DevOps project with a repository.
  • Basic knowledge of Git operations.

Step 1: Using Git in Azure Databricks

  1. Connect Azure Databricks to Git:

    • Open your Azure Databricks workspace.
    • Navigate to User Settings > Git Integration.
    • Connect your workspace to your Git account.
  2. Clone a Repository:

    • Create a new notebook.
    • Choose the option to save the notebook in a Git repository.
    • Select your Azure DevOps repository and clone it.

Step 2: Creating a New Branch in Databricks

  1. Create a New Branch:

    • In your Databricks notebook, click on the Git icon.
    • Choose New Branch.
    • Name your branch (e.g., feature/new-analysis) and create it.
  2. Make Changes and Commit:

    • Add some code or analysis to your notebook.
    • Commit your changes to your new branch.

Step 3: Creating a Pull Request using Azure Databricks and Azure DevOps

  1. Push Changes to Azure DevOps:

    • In your Databricks notebook, push your committed changes to Azure DevOps.
  2. Create a Pull Request:

    • Navigate to your Azure DevOps project.
    • Go to Repos > Pull Requests.
    • Click New Pull Request.
    • Choose the source branch (your new branch) and the target branch (usually main or master).
    • Fill in the details for your pull request and create it.

Step 4: Reviewing Code in Azure DevOps Pull Request

  1. Open the Pull Request:

    • In Azure DevOps, navigate to the pull request you just created.
  2. Review the Code:

    • Go through the changes in the pull request.
    • Add comments or feedback as necessary.
  3. Complete the Pull Request:

    • Once you're satisfied with the changes and any feedback has been addressed, complete the pull request to merge the changes into the target branch.

Congratulations on completing the assignment! Remember to regularly consult Azure Databricks and Azure DevOps documentation for any updates or changes to the platforms.


Updated on August 7, 2025