<?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: Azure AAD token with Databricks for User defined managed Identity inside Docker Container in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26088#M18213</link>
    <description>&lt;P&gt;Hi @Debayan Mukherjee​&amp;nbsp;, We are using the below DBR. Can you let me know if this is good? Or I need to use 11.3? &lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1323i8D05D883AF20DE13/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;az login --identity --username /subscriptions/{subscription_ID}/resourcegroups/{resource_Group}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{user_defined_managed_Identity}
&amp;nbsp;
aad_token=$(az account get-access-token --resource 2ff814a6-3304-4ab8-85cb-cd0e6f879c1d --query "accessToken" --output tsv)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Oct 2022 15:38:14 GMT</pubDate>
    <dc:creator>dsura</dc:creator>
    <dc:date>2022-10-25T15:38:14Z</dc:date>
    <item>
      <title>Azure AAD token with Databricks for User defined managed Identity inside Docker Container</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26085#M18210</link>
      <description>&lt;P&gt;Hi, We are currently using a Azure AAD Token inorder to authenticate with Databricks instead of generating Personal Access Tokens from Databricks. We have a multi-tenant architecture and so we are using Azure container instances to run multiple transformation pipelines parallel using dbT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inorder to authenticate with databricks we generate an AAD token inside the ACI using the user defined managed identity (UDMI) which has contributor and reader rights on databricks. We do get the AAD token back successfully. However, the token when passed to databricks returns a 403 error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UDMI is also an admin in the databricks workspace. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[0m18:11:15.979533 [debug] [MainThread]: Opening a new connection, currently in state init
[0m18:11:18.694997 [debug] [MainThread]: Databricks adapter: failed to connect: Error during request to server: : User not authorized.
[0m18:11:18.694997 [debug] [MainThread]: Databricks adapter: &amp;lt;class 'databricks.sql.exc.RequestError'&amp;gt;: Error during request to server: : User not authorized.
[0m18:11:18.694997 [debug] [MainThread]: Databricks adapter: attempt: 1/30
[0m18:11:18.695990 [debug] [MainThread]: Databricks adapter: bounded-retry-delay: None
[0m18:11:18.695990 [debug] [MainThread]: Databricks adapter: elapsed-seconds: 2.699450731277466/900.0
[0m18:11:18.695990 [debug] [MainThread]: Databricks adapter: error-message: : User not authorized.
[0m18:11:18.695990 [debug] [MainThread]: Databricks adapter: http-code: 403&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there anything that we are missing and have to add more to this? Any help on this is appreciated. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 14:56:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26085#M18210</guid>
      <dc:creator>dsura</dc:creator>
      <dc:date>2022-10-24T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AAD token with Databricks for User defined managed Identity inside Docker Container</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26088#M18213</link>
      <description>&lt;P&gt;Hi @Debayan Mukherjee​&amp;nbsp;, We are using the below DBR. Can you let me know if this is good? Or I need to use 11.3? &lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1323i8D05D883AF20DE13/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;az login --identity --username /subscriptions/{subscription_ID}/resourcegroups/{resource_Group}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{user_defined_managed_Identity}
&amp;nbsp;
aad_token=$(az account get-access-token --resource 2ff814a6-3304-4ab8-85cb-cd0e6f879c1d --query "accessToken" --output tsv)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 15:38:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26088#M18213</guid>
      <dc:creator>dsura</dc:creator>
      <dc:date>2022-10-25T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AAD token with Databricks for User defined managed Identity inside Docker Container</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26090#M18215</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1321i37D6447A0D7B3E50/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;@Debayan Mukherjee​&amp;nbsp;, I am still getting the above error. I tried with 11.2, 11.3 LTS. &lt;/P&gt;&lt;P&gt;Can you let me know what permissions did you give to the UDMI in your poc? Or schedule a call to discuss about a possible solution? &lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:35:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26090#M18215</guid>
      <dc:creator>dsura</dc:creator>
      <dc:date>2022-10-26T15:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AAD token with Databricks for User defined managed Identity inside Docker Container</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26091#M18216</link>
      <description>&lt;P&gt;@Debayan Mukherjee​&amp;nbsp;, We were able to fix the issue by changing the few guids that we used. Apparently the managed identity application id wasnt getting deployed appropriately by Terraform which caused this issue. It wasn't an issue related to Databricks Runtime. &lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 20:30:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26091#M18216</guid>
      <dc:creator>dsura</dc:creator>
      <dc:date>2022-10-26T20:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AAD token with Databricks for User defined managed Identity inside Docker Container</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26086#M18211</link>
      <description>&lt;P&gt;Hi, This looks like an old issue which we have faced earlier, Could you please update the DBR to the latest version and try again? &lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 05:51:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26086#M18211</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-10-25T05:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Azure AAD token with Databricks for User defined managed Identity inside Docker Container</title>
      <link>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26089#M18214</link>
      <description>&lt;P&gt;Hi @Dharit Sura​&amp;nbsp;, Could you please try DBR 9.1 LTS , 11.2 and 11.3 LTS? &lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 07:17:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/azure-aad-token-with-databricks-for-user-defined-managed/m-p/26089#M18214</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-10-26T07:17:17Z</dc:date>
    </item>
  </channel>
</rss>

