<?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: Automation creation of Databricks Top Level Repositories in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/automation-creation-of-databricks-top-level-repositories/m-p/22826#M15706</link>
    <description>&lt;P&gt;Thanks @Kaniz Fatma​&amp;nbsp;, I don't have problem creating PAT, the issue it's create the repo in databricks including the PAT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PD: Take the consideration I don't wanna use Databricks user setting because everything it's deployed by command line.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 10:04:03 GMT</pubDate>
    <dc:creator>alefred</dc:creator>
    <dc:date>2022-04-19T10:04:03Z</dc:date>
    <item>
      <title>Automation creation of Databricks Top Level Repositories</title>
      <link>https://community.databricks.com/t5/data-engineering/automation-creation-of-databricks-top-level-repositories/m-p/22824#M15704</link>
      <description>&lt;P&gt;I'm looking to automate the creation of Top Level repositories in Databricks however isn't possible using cli or API if this repo is private repository(Azure DevOps Repository) because require setup the token in user setting.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;databricks repos create \
   --url &lt;A href="https://&amp;lt;orgname&amp;gt;:&amp;lt;PAT_token&amp;gt;@dev.azure.com/&amp;lt;orgname&amp;gt;/&amp;lt;projectname&amp;gt;/_git/&amp;lt;reponame&amp;gt;" target="test_blank"&gt;https://&amp;lt;orgname&amp;gt;:&amp;lt;PAT_token&amp;gt;@dev.azure.com/&amp;lt;orgname&amp;gt;/&amp;lt;projectname&amp;gt;/_git/&amp;lt;reponame&amp;gt;&lt;/A&gt;; \
  --provider azureDevOpsServices \
  --path /Repos/Repository/&amp;lt;reponame&amp;gt; \
  --debug&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;That's a problem because use a git command like git clone with the same structure works without problems.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;git clone &lt;A href="https://&amp;lt;orgname&amp;gt;:&amp;lt;PAT_token&amp;gt;@dev.azure.com/&amp;lt;orgname&amp;gt;/&amp;lt;projectname&amp;gt;/_git/&amp;lt;reponame&amp;gt;" target="test_blank"&gt;https://&amp;lt;orgname&amp;gt;:&amp;lt;PAT_token&amp;gt;@dev.azure.com/&amp;lt;orgname&amp;gt;/&amp;lt;projectname&amp;gt;/_git/&amp;lt;reponame&amp;gt;&lt;/A&gt;;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Someone with any idea to solve this challenge?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 15:42:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/automation-creation-of-databricks-top-level-repositories/m-p/22824#M15704</guid>
      <dc:creator>alefred</dc:creator>
      <dc:date>2022-04-14T15:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Automation creation of Databricks Top Level Repositories</title>
      <link>https://community.databricks.com/t5/data-engineering/automation-creation-of-databricks-top-level-repositories/m-p/22826#M15706</link>
      <description>&lt;P&gt;Thanks @Kaniz Fatma​&amp;nbsp;, I don't have problem creating PAT, the issue it's create the repo in databricks including the PAT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PD: Take the consideration I don't wanna use Databricks user setting because everything it's deployed by command line.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 10:04:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/automation-creation-of-databricks-top-level-repositories/m-p/22826#M15706</guid>
      <dc:creator>alefred</dc:creator>
      <dc:date>2022-04-19T10:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Automation creation of Databricks Top Level Repositories</title>
      <link>https://community.databricks.com/t5/data-engineering/automation-creation-of-databricks-top-level-repositories/m-p/22828#M15708</link>
      <description>&lt;P&gt;We have API availabe for repos &lt;A href="https://docs.databricks.com/dev-tools/api/latest/repos.html#operation/get-repos" target="test_blank"&gt;https://docs.databricks.com/dev-tools/api/latest/repos.html#operation/get-repos&lt;/A&gt; also we are currently supporting SP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: As an admin Create a Service Principal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this API &lt;A href="https://docs.databricks.com/dev-tools/api/latest/scim/scim-sp.html#create-service-principal" alt="https://docs.databricks.com/dev-tools/api/latest/scim/scim-sp.html#create-service-principal" target="_blank"&gt;&lt;U&gt;SCIM API 2.0 (ServicePrincipals) | Databricks on AWS&lt;/U&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related doc: ​​&lt;A href="https://docs.databricks.com/administration-guide/users-groups/service-principals.html" alt="https://docs.databricks.com/administration-guide/users-groups/service-principals.html" target="_blank"&gt;&lt;U&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="https://docs.databricks.com/administration-guide/users-groups/service-principals.html" target="test_blank"&gt;https://docs.databricks.com/administration-guide/users-groups/service-principals.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2: As an admin create a Databricks token on behalf of the Service Principal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this API:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/api/latest/token-management.html#operation/create-obo-token" alt="https://docs.databricks.com/dev-tools/api/latest/token-management.html#operation/create-obo-token" target="_blank"&gt;&lt;U&gt;Token Management API 2.0 | Databricks on AWS&lt;/U&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related doc: &lt;A href="https://docs.databricks.com/administration-guide/users-groups/service-principals.html" alt="https://docs.databricks.com/administration-guide/users-groups/service-principals.html" target="_blank"&gt;&lt;U&gt;&lt;/U&gt;&lt;/A&gt;&lt;A href="https://docs.databricks.com/administration-guide/users-groups/service-principals.html" target="test_blank"&gt;https://docs.databricks.com/administration-guide/users-groups/service-principals.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 3: Using the Service Principal Databricks Token call the Git Credentials API&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the Git token via this API: &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;&lt;U&gt;Git Credentials API 2.0 | Databricks on AWS&lt;/U&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4: Invoke &lt;A href="https://docs.databricks.com/dev-tools/api/latest/repos.html" alt="https://docs.databricks.com/dev-tools/api/latest/repos.html" target="_blank"&gt;&lt;U&gt;Repos APIs&lt;/U&gt;&lt;/A&gt; as service principal using the SPNs Databricks Token	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Related stackoverflow questions: &lt;A href="https://stackoverflow.com/questions/72237826/databricks-rest-api-call-for-updating-branch-error-user-settings-git-integra" alt="https://stackoverflow.com/questions/72237826/databricks-rest-api-call-for-updating-branch-error-user-settings-git-integra" target="_blank"&gt;&lt;U&gt;Databricks REST API call for updating branch error : User Settings &amp;gt; Git Integration to set up an Azure DevOps personal access token - Stack Overflow&lt;/U&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2022 13:31:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/automation-creation-of-databricks-top-level-repositories/m-p/22828#M15708</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-05-21T13:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Automation creation of Databricks Top Level Repositories</title>
      <link>https://community.databricks.com/t5/data-engineering/automation-creation-of-databricks-top-level-repositories/m-p/22829#M15709</link>
      <description>&lt;P&gt;Hi @Luis Arias​,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a friendly follow-up. Did Atanu's response help you to resolved your question? please let us know&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 21:44:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/automation-creation-of-databricks-top-level-repositories/m-p/22829#M15709</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-06-13T21:44:36Z</dc:date>
    </item>
  </channel>
</rss>

