<?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: ADF - Fails to run job in workspace in another subscription in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/adf-fails-to-run-job-in-workspace-in-another-subscription/m-p/76246#M7625</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the suggestions! However, they did not work.&lt;/P&gt;&lt;P&gt;The odd thing is that when I run the job manually in Databricks, it works. It is only when I try to run the job through ADF that it fails.&lt;/P&gt;&lt;P&gt;Any other idea as to why this is happening and how to solve this?&lt;/P&gt;&lt;P&gt;PS to clarify the setup:&lt;/P&gt;&lt;P&gt;We have 2 Databricks workspaces in 2 different Azure subscriptions: test and prod.&lt;/P&gt;&lt;P&gt;ADF lies in prod subscription and uses a managed identity. The managed identity has been added to both workspaces, and have identical permissions/grants/priviliges in both workspaces.&lt;/P&gt;&lt;P&gt;Here is a comparison matrix of when the job is run manually or through ADF in both workspaces:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Test workspace&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Prod workspace&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Run job through ADF&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;FAILS&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;WORKS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Run job Manually&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;WORKS&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;WORKS&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Mon, 01 Jul 2024 10:09:59 GMT</pubDate>
    <dc:creator>IvanK</dc:creator>
    <dc:date>2024-07-01T10:09:59Z</dc:date>
    <item>
      <title>ADF - Fails to run job in workspace in another subscription</title>
      <link>https://community.databricks.com/t5/get-started-discussions/adf-fails-to-run-job-in-workspace-in-another-subscription/m-p/75928#M7620</link>
      <description>&lt;P&gt;&amp;nbsp;We are trying to run a Databricks job from ADF, but we keep getting the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operation on target Run dbt job failed: {"error_code":"PERMISSION_DENIED","message":"User &amp;lt;adf-mi-prod-id&amp;gt; does not have Manage Run or Owner or Admin permissions on job 123"}.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The managed identity that should run the job, adf-mi-prod, has permission "Manage" Run on job 123 (I have also tried giving it permission "Is Owner").&lt;/P&gt;&lt;P&gt;When the job is triggered directly in Databricks, it runs normally, but when ADF is trying to trigger it, it fails.&lt;/P&gt;&lt;P&gt;Does anyone know why triggering it through ADF is failing?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Extra info&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We are using ADF for orchestration.&lt;/P&gt;&lt;P&gt;ADF instance lies in our prod subscription and we have Databricks workspaces in both test and prod subscription.&lt;/P&gt;&lt;P&gt;We have the same job in both workspaces. ADF succeeds to run the job in prod workspace, but fails to run it in test workspace.&lt;/P&gt;&lt;P&gt;The ADF MI has the same permissions on the clusters and SQL warehouses in both workspaces.&lt;/P&gt;&lt;P&gt;"Run as" on the job is set to adf-mi-prod for both jobs.&lt;/P&gt;&lt;P&gt;Permission "Can manage" are set for adf-mi-prod on both jobs.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 09:26:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/adf-fails-to-run-job-in-workspace-in-another-subscription/m-p/75928#M7620</guid>
      <dc:creator>IvanK</dc:creator>
      <dc:date>2024-06-27T09:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: ADF - Fails to run job in workspace in another subscription</title>
      <link>https://community.databricks.com/t5/get-started-discussions/adf-fails-to-run-job-in-workspace-in-another-subscription/m-p/76075#M7622</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Sure, this is what I can retrieve from ADF:&lt;BR /&gt;&lt;STRONG&gt;Operation on target Run dbt job failed: {"error_code":"PERMISSION_DENIED","message":"User &amp;lt;adf-mi-prod-id&amp;gt; does not have Manage Run or Owner or Admin permissions on job 123"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;adf-mi-prod-id&amp;gt; is the Client ID of the MI.&lt;/P&gt;&lt;P&gt;I can not see any job runs of job 123 in Databricks, whenever the job is triggered by ADF and I get the error message above.&lt;/P&gt;&lt;P&gt;If I trigger the job manually in Databricks, the job run succeeds (and I see a job run in the UI)&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 12:31:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/adf-fails-to-run-job-in-workspace-in-another-subscription/m-p/76075#M7622</guid>
      <dc:creator>IvanK</dc:creator>
      <dc:date>2024-06-28T12:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: ADF - Fails to run job in workspace in another subscription</title>
      <link>https://community.databricks.com/t5/get-started-discussions/adf-fails-to-run-job-in-workspace-in-another-subscription/m-p/76215#M7624</link>
      <description>&lt;P&gt;I am seeing the error message above whenever job 123 is triggered by ADF, but I can't find any instances of this job running in Databricks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 07:14:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/adf-fails-to-run-job-in-workspace-in-another-subscription/m-p/76215#M7624</guid>
      <dc:creator>riquedan</dc:creator>
      <dc:date>2024-07-01T07:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: ADF - Fails to run job in workspace in another subscription</title>
      <link>https://community.databricks.com/t5/get-started-discussions/adf-fails-to-run-job-in-workspace-in-another-subscription/m-p/76246#M7625</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the suggestions! However, they did not work.&lt;/P&gt;&lt;P&gt;The odd thing is that when I run the job manually in Databricks, it works. It is only when I try to run the job through ADF that it fails.&lt;/P&gt;&lt;P&gt;Any other idea as to why this is happening and how to solve this?&lt;/P&gt;&lt;P&gt;PS to clarify the setup:&lt;/P&gt;&lt;P&gt;We have 2 Databricks workspaces in 2 different Azure subscriptions: test and prod.&lt;/P&gt;&lt;P&gt;ADF lies in prod subscription and uses a managed identity. The managed identity has been added to both workspaces, and have identical permissions/grants/priviliges in both workspaces.&lt;/P&gt;&lt;P&gt;Here is a comparison matrix of when the job is run manually or through ADF in both workspaces:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Test workspace&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Prod workspace&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Run job through ADF&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;FAILS&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;WORKS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Run job Manually&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;WORKS&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;WORKS&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 01 Jul 2024 10:09:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/adf-fails-to-run-job-in-workspace-in-another-subscription/m-p/76246#M7625</guid>
      <dc:creator>IvanK</dc:creator>
      <dc:date>2024-07-01T10:09:59Z</dc:date>
    </item>
  </channel>
</rss>

