<?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: Databricks Asset Bundles - job specific &amp;quot;run_as&amp;quot; user/service_principle in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-job-specific-quot-run-as-quot-user/m-p/63839#M32377</link>
    <description>&lt;P&gt;Found a working solution, posting it here for anyone else hitting the same issue - trick was to redefine "resources" under the target you want to make an exception for:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bundle:
  name: hello_bundle

include:
  - resources/*.yml

targets:

  dev:
    workspace:
      host: host_name
      root_path: root_path
    mode: dev
    run_as:
      service_principal_name: DEFAULT_SP
    resources:
      jobs:
        Hello_Job:
          name: Hello_Job
          run_as:
            user_name: SECONDARY_SP/USER&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 16:41:23 GMT</pubDate>
    <dc:creator>lilo_z</dc:creator>
    <dc:date>2024-03-15T16:41:23Z</dc:date>
    <item>
      <title>Databricks Asset Bundles - job specific "run_as" user/service_principle</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-job-specific-quot-run-as-quot-user/m-p/63414#M32231</link>
      <description>&lt;P&gt;Was wondering if this was possible, since a use case came up in my team. Would it be possible to use a different service principle for a single job than what is specified for that target environment? For example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;bundle&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;name&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;hello-bundle&lt;/SPAN&gt;

&lt;SPAN class=""&gt;resources&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;jobs&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;hello-job&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;name&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;hello-job&lt;/SPAN&gt;
      &lt;SPAN class=""&gt;tasks&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;
        &lt;SPAN class=""&gt;-&lt;/SPAN&gt; &lt;SPAN class=""&gt;task_key&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;hello-task&lt;/SPAN&gt;
          &lt;SPAN class=""&gt;existing_cluster_id&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;1234-567890-abcde123&lt;/SPAN&gt;
          &lt;SPAN class=""&gt;notebook_task&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;
            &lt;SPAN class=""&gt;notebook_path&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;./hello.py&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;    run_as:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;      service_principle_name: principle_1&lt;/FONT&gt;&lt;/SPAN&gt;

&lt;SPAN class=""&gt;targets&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;dev&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;default&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;true&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;    run_as:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;       service_principle_name: principle_2&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 17:12:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-job-specific-quot-run-as-quot-user/m-p/63414#M32231</guid>
      <dc:creator>lilo_z</dc:creator>
      <dc:date>2024-03-12T17:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles - job specific "run_as" user/service_principle</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-job-specific-quot-run-as-quot-user/m-p/63610#M32296</link>
      <description>&lt;P&gt;The above configuration isn't working as expected &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;, is there specific syntax or placement within the yaml file expected within the asset bundle to make the service principle/user explicit? We haven't been able to find documentation that would indicate this to be the case.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 22:40:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-job-specific-quot-run-as-quot-user/m-p/63610#M32296</guid>
      <dc:creator>lilo_z</dc:creator>
      <dc:date>2024-03-13T22:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Asset Bundles - job specific "run_as" user/service_principle</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-job-specific-quot-run-as-quot-user/m-p/63839#M32377</link>
      <description>&lt;P&gt;Found a working solution, posting it here for anyone else hitting the same issue - trick was to redefine "resources" under the target you want to make an exception for:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;bundle:
  name: hello_bundle

include:
  - resources/*.yml

targets:

  dev:
    workspace:
      host: host_name
      root_path: root_path
    mode: dev
    run_as:
      service_principal_name: DEFAULT_SP
    resources:
      jobs:
        Hello_Job:
          name: Hello_Job
          run_as:
            user_name: SECONDARY_SP/USER&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 16:41:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-asset-bundles-job-specific-quot-run-as-quot-user/m-p/63839#M32377</guid>
      <dc:creator>lilo_z</dc:creator>
      <dc:date>2024-03-15T16:41:23Z</dc:date>
    </item>
  </channel>
</rss>

