<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Run Task as Service Principal with Code in Azure DevOps Repo in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5582#M1953</link>
    <description>&lt;P&gt;Hello, Thank you for reaching out to us.&lt;/P&gt;&lt;P&gt;The error could be due to misconfiguration while setting up the Service principal for Azure DevOps.&lt;/P&gt;&lt;P&gt;have you checked this doc: &lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/ci-cd/ci-cd-sp" target="test_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/ci-cd/ci-cd-sp&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 08:57:33 GMT</pubDate>
    <dc:creator>User16752242622</dc:creator>
    <dc:date>2023-04-19T08:57:33Z</dc:date>
    <item>
      <title>Run Task as Service Principal with Code in Azure DevOps Repo</title>
      <link>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5581#M1952</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a task of type Notebook, source is Git (Azure DevOps). This task runs fine with my user, but if I change the Owner to a service principal, I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run result unavailable: run failed with error message&lt;/P&gt;&lt;P&gt; Failed to checkout Git repository: PERMISSION_DENIED: Invalid Git provider credentials.Go to User Settings &amp;gt; Git Integration to ensure that: ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume the error is a bit misleading and the problem is actually missing authorizations on the DevOps side. &lt;/P&gt;&lt;P&gt;How exactly can I give access to the SP in DevOps? The SP is already added to the DevOps organization with Basic access level. I can't add it to the specific Repo somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 06:05:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5581#M1952</guid>
      <dc:creator>pgruetter</dc:creator>
      <dc:date>2023-04-19T06:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task as Service Principal with Code in Azure DevOps Repo</title>
      <link>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5582#M1953</link>
      <description>&lt;P&gt;Hello, Thank you for reaching out to us.&lt;/P&gt;&lt;P&gt;The error could be due to misconfiguration while setting up the Service principal for Azure DevOps.&lt;/P&gt;&lt;P&gt;have you checked this doc: &lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/ci-cd/ci-cd-sp" target="test_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/ci-cd/ci-cd-sp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 08:57:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5582#M1953</guid>
      <dc:creator>User16752242622</dc:creator>
      <dc:date>2023-04-19T08:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task as Service Principal with Code in Azure DevOps Repo</title>
      <link>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5583#M1954</link>
      <description>&lt;P&gt;Please feel free to share the complete error message here. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 08:59:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5583#M1954</guid>
      <dc:creator>User16752242622</dc:creator>
      <dc:date>2023-04-19T08:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task as Service Principal with Code in Azure DevOps Repo</title>
      <link>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5584#M1955</link>
      <description>&lt;P&gt;Thanks a lot for the link, I'll have to check in detail. I first thought that's only for access from DevOps to Databricks but now I see it's also for Repo access in the other direction. &lt;/P&gt;&lt;P&gt;From quickly skimming the article, I'm not sure what is meant by "username associated with your Git provider" though. Is it the display name of the SP ? &lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:32:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5584#M1955</guid>
      <dc:creator>pgruetter</dc:creator>
      <dc:date>2023-04-19T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task as Service Principal with Code in Azure DevOps Repo</title>
      <link>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5585#M1956</link>
      <description>&lt;P&gt;The username would be the name associated with Azure DevOps. Check this for Azure DevOps integration&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-gb/azure/databricks/repos/get-access-tokens-from-git-provider#--azure-devops-services" target="test_blank"&gt;https://learn.microsoft.com/en-gb/azure/databricks/repos/get-access-tokens-from-git-provider#--azure-devops-services&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:51:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5585#M1956</guid>
      <dc:creator>User16752242622</dc:creator>
      <dc:date>2023-04-19T09:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task as Service Principal with Code in Azure DevOps Repo</title>
      <link>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5586#M1957</link>
      <description>&lt;P&gt;But the link describes how my personal user is connected to Azure DevOps. Since I want to use a service principal, it must be something else, right ?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 09:57:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5586#M1957</guid>
      <dc:creator>pgruetter</dc:creator>
      <dc:date>2023-04-19T09:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task as Service Principal with Code in Azure DevOps Repo</title>
      <link>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5587#M1958</link>
      <description>&lt;P&gt;@pgruetter​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To enable a service principal to access a specific Azure DevOps repository, you need to grant it the necessary permissions at both the organization and repository levels.&lt;/P&gt;&lt;P&gt;Here are the steps to grant the service principal the necessary permissions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigate to your Azure DevOps organization and select the project that contains the repository you want to grant access to.&lt;/LI&gt;&lt;LI&gt;Select the "Settings" menu and then "Permissions" under "Repositories".&lt;/LI&gt;&lt;LI&gt;Select the repository you want to grant access to.&lt;/LI&gt;&lt;LI&gt;Click "Add" to add a new user or group.&lt;/LI&gt;&lt;LI&gt;In the "Add users and groups" dialog, search for the name of the service principal that you want to grant access to the repository.&lt;/LI&gt;&lt;LI&gt;In the "Assign permissions" dialog, select the appropriate permission level for the service principal. You may want to start with "Read" access and then grant additional permissions as needed.&lt;/LI&gt;&lt;LI&gt;Click "Add" to save the changes.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After you've granted the necessary permissions to the service principal at the repository level, you'll also need to make sure that it has the necessary permissions to access the code in the repository. You can do this by adding the service principal's credentials to the notebook task's Git repository connection.&lt;/P&gt;&lt;P&gt;Here's how to add the service principal's credentials:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;In the Azure portal, navigate to the resource group that contains the Azure DevOps project.&lt;/LI&gt;&lt;LI&gt;Select the Azure DevOps project resource.&lt;/LI&gt;&lt;LI&gt;In the "Overview" tab, select "Service connections".&lt;/LI&gt;&lt;LI&gt;Select the connection for the Git repository that the notebook task is using.&lt;/LI&gt;&lt;LI&gt;Click "Edit" to edit the connection.&lt;/LI&gt;&lt;LI&gt;In the "Edit service connection" dialog, select "Service principal (manual)" as the authentication method.&lt;/LI&gt;&lt;LI&gt;Enter the service principal's client ID and client secret.&lt;/LI&gt;&lt;LI&gt;Click "Save" to save the changes.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After you've granted the necessary permissions and added the service principal's credentials, you should be able to run the notebook task with the service principal as the owner without encountering the "PERMISSION_DENIED" error.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 03:43:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/5587#M1958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-25T03:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Run Task as Service Principal with Code in Azure DevOps Repo</title>
      <link>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/57351#M30759</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/20230"&gt;@pgruetter&lt;/a&gt;&amp;nbsp;, any chance you figures this issue out? We followed the steps of&amp;nbsp;&lt;SPAN&gt;Anonymous, but were not successful.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 10:28:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-task-as-service-principal-with-code-in-azure-devops-repo/m-p/57351#M30759</guid>
      <dc:creator>jannemanson</dc:creator>
      <dc:date>2024-01-15T10:28:26Z</dc:date>
    </item>
  </channel>
</rss>

