<?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: Workflow service principle owned can't checkout git repository in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3085#M262</link>
    <description>&lt;P&gt;Yes, as GIT credentials, registers personal access token for Databricks to do operations on behalf of the user.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 06:27:33 GMT</pubDate>
    <dc:creator>Debayan</dc:creator>
    <dc:date>2023-06-16T06:27:33Z</dc:date>
    <item>
      <title>Workflow service principle owned can't checkout git repository</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3082#M259</link>
      <description>&lt;P&gt;I am trying to deploy a workflow where the owner is a service principal and I am using git integration (backend with azure devops), when I run the workflow it says that it doesn't have permissions to checkout the repo.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;run failed with error message
 Failed to checkout Git repository: PERMISSION_DENIED: Encountered an error with your Azure Active Directory credentials. Please try logging out of Azure Active Directory (https://portal.azure.com) and logging back in.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:36:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3082#M259</guid>
      <dc:creator>giuseppegrieco</dc:creator>
      <dc:date>2023-06-14T15:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow service principle owned can't checkout git repository</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3084#M261</link>
      <description>&lt;P&gt;@Debayan Mukherjee​&amp;nbsp;Hello, thanks for you answer. I am wondering creating a new credential entry as git_username should i use the service principal client id right? while for the PAT since azure devops doesn't provide a way to create it for service principal should i create one from a user account?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 07:27:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3084#M261</guid>
      <dc:creator>giuseppegrieco</dc:creator>
      <dc:date>2023-06-15T07:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow service principle owned can't checkout git repository</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3086#M263</link>
      <description>&lt;P&gt;Hi @Giuseppe Grieco​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope everything is going great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 07:33:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3086#M263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-16T07:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow service principle owned can't checkout git repository</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3083#M260</link>
      <description>&lt;P&gt;Hi, To use a service principal with Repos API first add the Git PAT token for the service principal via the&amp;nbsp;&lt;A href="https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html#operation/create-git-credential" alt="https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html#operation/create-git-credential" target="_blank"&gt;Git Credential API&lt;/A&gt;. You can then use Repos API and Jobs APIs with your service principal.&lt;/P&gt;&lt;P&gt;Could you please see if this helps. Also, please tag @Debayan Mukherjee​&amp;nbsp;with your next update so that I will be getting notified. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 07:22:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3083#M260</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-06-15T07:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow service principle owned can't checkout git repository</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3085#M262</link>
      <description>&lt;P&gt;Yes, as GIT credentials, registers personal access token for Databricks to do operations on behalf of the user.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 06:27:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/3085#M262</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-06-16T06:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow service principle owned can't checkout git repository</title>
      <link>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/51105#M28969</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am facing the same issue and I am using the following for the git-credentials REST api from postman&lt;BR /&gt;1) databricks PAT for authorization bearer token&lt;BR /&gt;2)&amp;nbsp;&lt;SPAN&gt;personal_access_token = Azure Devops PAT&lt;BR /&gt;3)&amp;nbsp;git_username = Service Principal display name (This is the owner/ Run-as on my databricks workflow and it needs to access notebooks from my Azure DevOps repo)&lt;BR /&gt;4)&amp;nbsp;git_provider =&amp;nbsp;azureDevOpsServices.&lt;BR /&gt;&lt;BR /&gt;Questions:&lt;BR /&gt;1) Where am I going wrong while using the API?&lt;BR /&gt;2) When I choose Azure DevOps Services AAD authentication for the service principal, why doesn't the Databricks - Azure Devops (ADO) integration work without having to work with PATs?&lt;BR /&gt;The reason for using a service principal is, I don't want my personal ADO PAT to be used for any configuration.&lt;BR /&gt;Plus, service principals can't have PATs in ADO. (Another reason why SPNs are used and are more secure)&lt;BR /&gt;The service principal has access to both databricks workspace and ADO repo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 15:31:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/workflow-service-principle-owned-can-t-checkout-git-repository/m-p/51105#M28969</guid>
      <dc:creator>marc88</dc:creator>
      <dc:date>2023-11-13T15:31:35Z</dc:date>
    </item>
  </channel>
</rss>

