<?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: Issue accessing databricks secrets from ADF in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131181#M3992</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/174460"&gt;@gs2&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/183037"&gt;@IkuyoshiKuroda&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I have reviewed the documentation:&lt;/P&gt;&lt;P class=""&gt;According to the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/security/secrets/secret-scopes#--types-of-secret-scopes" target="_blank" rel="noopener"&gt;Databricks documentation on secret scopes&lt;/A&gt;, there are &lt;SPAN class=""&gt;&lt;STRONG&gt;two types&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Databricks-backed scopes&lt;/STRONG&gt;&lt;/SPAN&gt; → secrets are stored inside Databricks. These do &lt;SPAN class=""&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/SPAN&gt; support authentication via Azure Managed Identities.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;databricks secrets put-acl &amp;lt;scope-name&amp;gt; &amp;lt;principal&amp;gt; &amp;lt;permission&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;EM&gt;"The&amp;nbsp;principal&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;&amp;nbsp;field specifies an existing Azure Databricks principal."&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Azure Key Vault–backed scopes&lt;/STRONG&gt;&lt;/SPAN&gt; → secrets are stored in your Key Vault. These &lt;SPAN class=""&gt;&lt;STRONG&gt;do&lt;/STRONG&gt;&lt;/SPAN&gt; work with Managed Identity, as long as the MSI has permission on the Key Vault.&lt;EM&gt; "&lt;SPAN&gt;You must have the Key Vault Contributor, Contributor, or Owner role on the Azure key vault instance that you want to use to back the secret scope."&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;If your ADF pipeline is using a Managed Identity, then you need to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Create a Key Vault–backed secret scope&lt;/STRONG&gt;&lt;/SPAN&gt; in Databricks that points to your Key Vault.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Assign your ADF managed identity the proper role&lt;/STRONG&gt;&lt;/SPAN&gt; on that Key Vault, such as &lt;I&gt;Key Vault Secrets User&lt;/I&gt;, with &lt;SPAN class=""&gt;get&lt;/SPAN&gt; and &lt;SPAN class=""&gt;list&lt;/SPAN&gt; permissions.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Access secrets from Databricks as usual:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="python"&gt;dbutils.secrets.get(scope="my_kv_scope", key="my_secret")&lt;/LI-CODE&gt;&lt;P class=""&gt;&lt;BR /&gt;If your first setup was working, it’s possible the scope you used originally was already Key Vault–backed, and deleting/re-adding the service principal broke the access configuration. Double-check the Key Vault role assignments for your ADF MSI and make sure the scope in Databricks still points to the correct Key Vault resource ID and DNS name.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Isi&lt;/P&gt;</description>
    <pubDate>Sun, 07 Sep 2025 20:01:07 GMT</pubDate>
    <dc:creator>Isi</dc:creator>
    <dc:date>2025-09-07T20:01:07Z</dc:date>
    <item>
      <title>Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124710#M3621</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;Seeing an issue where notebook triggered from ADF is not able to access secret scopes, which was working earlier.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the steps I did&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Provide ADF contributor role permission in databrick workspace. - we tested this and were able to trigger notebook and even access secrets.&lt;/P&gt;&lt;P&gt;2. Manually deleted the service principal in workspace settings. Removed the contributor role for ADF from data bricks and added it back with same permission level. - &amp;gt; this time the jobs are failing while accessing db secrets. Can not even list the secret scopes. The error we are getting is 'Invalid access token' whenever I try to list or use the scopes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried removing the service principal and adding back many times but still same issue persists.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 20:49:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124710#M3621</guid>
      <dc:creator>gs2</dc:creator>
      <dc:date>2025-07-09T20:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124781#M3622</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/174460"&gt;@gs2&lt;/a&gt;, deleting and re-adding the service principal resets its identity context. Even if the same permissions are applied, Databricks treats it as a new identity.&lt;/P&gt;&lt;P&gt;Try generating a new client secret in Azure AD and update your ADF Databricks linked service with it. Then, re-add the service principal to the Databricks workspace and make sure it has the necessary permissions.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 11:29:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124781#M3622</guid>
      <dc:creator>Renu_</dc:creator>
      <dc:date>2025-07-10T11:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124791#M3624</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thank you . But I am not using secret in linked service . I am using managed identity service for authentication, which is working fine . I am able to run the notebook from ADF but not able to list or use the secrets in databricks.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 13:31:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124791#M3624</guid>
      <dc:creator>gs2</dc:creator>
      <dc:date>2025-07-10T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124833#M3626</link>
      <description>&lt;P&gt;Probably you can assign the managed identity admin in the workspace. I believe the permissions are not set at the keyvault. Use this code below.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from databricks.sdk import WorkspaceClient
w = WorkspaceClient()

w.secret.put_acl(scope = {scope_name},permissions = workspace.AclPermission.MANAGE,principal= {SPN_name})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 19:26:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124833#M3626</guid>
      <dc:creator>nayan_wylde</dc:creator>
      <dc:date>2025-07-10T19:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124966#M3632</link>
      <description>&lt;P&gt;Thank you , I already tried that . Giving permission to principal explicitly. It still had same issues.. not able to list scopes or get scopes .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 18:56:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/124966#M3632</guid>
      <dc:creator>gs2</dc:creator>
      <dc:date>2025-07-11T18:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131152#M3989</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm experiencing the same issue. Do you know how to solve this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Sep 2025 06:06:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131152#M3989</guid>
      <dc:creator>IkuyoshiKuroda</dc:creator>
      <dc:date>2025-09-07T06:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131181#M3992</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/174460"&gt;@gs2&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/183037"&gt;@IkuyoshiKuroda&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I have reviewed the documentation:&lt;/P&gt;&lt;P class=""&gt;According to the &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/security/secrets/secret-scopes#--types-of-secret-scopes" target="_blank" rel="noopener"&gt;Databricks documentation on secret scopes&lt;/A&gt;, there are &lt;SPAN class=""&gt;&lt;STRONG&gt;two types&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Databricks-backed scopes&lt;/STRONG&gt;&lt;/SPAN&gt; → secrets are stored inside Databricks. These do &lt;SPAN class=""&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/SPAN&gt; support authentication via Azure Managed Identities.&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;databricks secrets put-acl &amp;lt;scope-name&amp;gt; &amp;lt;principal&amp;gt; &amp;lt;permission&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P class=""&gt;&lt;EM&gt;"The&amp;nbsp;principal&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;&amp;nbsp;field specifies an existing Azure Databricks principal."&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Azure Key Vault–backed scopes&lt;/STRONG&gt;&lt;/SPAN&gt; → secrets are stored in your Key Vault. These &lt;SPAN class=""&gt;&lt;STRONG&gt;do&lt;/STRONG&gt;&lt;/SPAN&gt; work with Managed Identity, as long as the MSI has permission on the Key Vault.&lt;EM&gt; "&lt;SPAN&gt;You must have the Key Vault Contributor, Contributor, or Owner role on the Azure key vault instance that you want to use to back the secret scope."&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;If your ADF pipeline is using a Managed Identity, then you need to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Create a Key Vault–backed secret scope&lt;/STRONG&gt;&lt;/SPAN&gt; in Databricks that points to your Key Vault.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;Assign your ADF managed identity the proper role&lt;/STRONG&gt;&lt;/SPAN&gt; on that Key Vault, such as &lt;I&gt;Key Vault Secrets User&lt;/I&gt;, with &lt;SPAN class=""&gt;get&lt;/SPAN&gt; and &lt;SPAN class=""&gt;list&lt;/SPAN&gt; permissions.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Access secrets from Databricks as usual:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="python"&gt;dbutils.secrets.get(scope="my_kv_scope", key="my_secret")&lt;/LI-CODE&gt;&lt;P class=""&gt;&lt;BR /&gt;If your first setup was working, it’s possible the scope you used originally was already Key Vault–backed, and deleting/re-adding the service principal broke the access configuration. Double-check the Key Vault role assignments for your ADF MSI and make sure the scope in Databricks still points to the correct Key Vault resource ID and DNS name.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Isi&lt;/P&gt;</description>
      <pubDate>Sun, 07 Sep 2025 20:01:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131181#M3992</guid>
      <dc:creator>Isi</dc:creator>
      <dc:date>2025-09-07T20:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131184#M3993</link>
      <description>&lt;P&gt;Thank you.&lt;BR /&gt;After setting the scope appropriately in [Databricks-backed scopes], it worked fine.&lt;BR /&gt;&lt;BR /&gt;ikuyoshi&lt;/P&gt;</description>
      <pubDate>Sun, 07 Sep 2025 22:50:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131184#M3993</guid>
      <dc:creator>IkuyoshiKuroda</dc:creator>
      <dc:date>2025-09-07T22:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131218#M3995</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/145555"&gt;@Isi&lt;/a&gt;&amp;nbsp;I really like the way you put the resolution over here. Good to learn from it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 10:28:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131218#M3995</guid>
      <dc:creator>Khaja_Zaffer</dc:creator>
      <dc:date>2025-09-08T10:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue accessing databricks secrets from ADF</title>
      <link>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131219#M3996</link>
      <description>&lt;P&gt;Thanks you &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/173840"&gt;@Khaja_Zaffer&lt;/a&gt;&amp;nbsp;I really try my best to provide well explained solutions. Its a motivation receive this kind of messages&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 10:39:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/issue-accessing-databricks-secrets-from-adf/m-p/131219#M3996</guid>
      <dc:creator>Isi</dc:creator>
      <dc:date>2025-09-08T10:39:01Z</dc:date>
    </item>
  </channel>
</rss>

