<?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 Service Principal for remote repository in workflow/job expiring token in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/service-principal-for-remote-repository-in-workflow-job-expiring/m-p/45525#M411</link>
    <description>&lt;P&gt;I would like to create a databricks Job where the 'Run as' field is set to a ServicePrincipal. The Job points to notebooks stored in Azure DevOps.&lt;/P&gt;&lt;P&gt;The step I've already performed are:&lt;/P&gt;&lt;P&gt;I created the Service Principal and I'm now able to see it into the "Run as" dropdown menù of the Job&lt;/P&gt;&lt;P&gt;1) I created the ADO PAT (DevOps personal access token)&lt;/P&gt;&lt;P&gt;2) I created a AAD token for ServicePrincipal&lt;/P&gt;&lt;P&gt;3) Used the generated AAD token to set ADO PAT using Git Credentials API via git credential API (doc &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/ci-cd/ci-cd-sp#--add-git-provider-credentials-to-an-azure-databricks-workspace" target="_self"&gt;here&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I try to setup the Git Credential for the ServicePrincipal I need to insert the DevOps PAT which has a temporary validity.&lt;/P&gt;&lt;P&gt;If the DevOps PAT is not expired everything works fine but when the PAT expires I'm getting the error "Failed to checkout Git repository: PERMISSION_DENIED: Invalid Git provider credentials"&lt;/P&gt;&lt;P&gt;Is it possible to run the Job via ServicePrincipal without using any expiring token?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 13:26:54 GMT</pubDate>
    <dc:creator>diego_poggioli</dc:creator>
    <dc:date>2023-09-21T13:26:54Z</dc:date>
    <item>
      <title>Service Principal for remote repository in workflow/job expiring token</title>
      <link>https://community.databricks.com/t5/administration-architecture/service-principal-for-remote-repository-in-workflow-job-expiring/m-p/45525#M411</link>
      <description>&lt;P&gt;I would like to create a databricks Job where the 'Run as' field is set to a ServicePrincipal. The Job points to notebooks stored in Azure DevOps.&lt;/P&gt;&lt;P&gt;The step I've already performed are:&lt;/P&gt;&lt;P&gt;I created the Service Principal and I'm now able to see it into the "Run as" dropdown menù of the Job&lt;/P&gt;&lt;P&gt;1) I created the ADO PAT (DevOps personal access token)&lt;/P&gt;&lt;P&gt;2) I created a AAD token for ServicePrincipal&lt;/P&gt;&lt;P&gt;3) Used the generated AAD token to set ADO PAT using Git Credentials API via git credential API (doc &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/ci-cd/ci-cd-sp#--add-git-provider-credentials-to-an-azure-databricks-workspace" target="_self"&gt;here&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I try to setup the Git Credential for the ServicePrincipal I need to insert the DevOps PAT which has a temporary validity.&lt;/P&gt;&lt;P&gt;If the DevOps PAT is not expired everything works fine but when the PAT expires I'm getting the error "Failed to checkout Git repository: PERMISSION_DENIED: Invalid Git provider credentials"&lt;/P&gt;&lt;P&gt;Is it possible to run the Job via ServicePrincipal without using any expiring token?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 13:26:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/service-principal-for-remote-repository-in-workflow-job-expiring/m-p/45525#M411</guid>
      <dc:creator>diego_poggioli</dc:creator>
      <dc:date>2023-09-21T13:26:54Z</dc:date>
    </item>
  </channel>
</rss>

