<?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 On-Behalf of tokens disabled for Azure Environments? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7228#M3149</link>
    <description>&lt;P&gt;While trying to setup a Power BI connection to the Azure Delta Lake we ran into several issues around Service Principals. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;1) The API listed on the learn.microsoft site (link 1 below) indicates that there is an API you can use to create SP tokens. When trying to utilize this functionality a message gets generated stating that on-behalf of is disabled. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;2) Documentation (Link 2) on using service-principals doesn't mention the above API or that Behalf-of is disabled. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;3) The path that's described uses an Azure AD Token process. This process only works if you're setting up a configuration that can send a token to request a temporary access token for use. (Rest API)&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;4) Our use case was in regards to Power BI so the application can't directly follow the process referenced and there isn't another solution provided. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;*It was noticed that the AWS documentation actually talks about using the API to get the On-Behalf of token. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I think there's room for improvement here when we're talking about documentation. I opened github request with Microsoft but it's not really moving. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Link 1 - &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/administration-guide/users-groups/service-principals" alt="https://learn.microsoft.com/en-us/azure/databricks/administration-guide/users-groups/service-principals" target="_blank"&gt;Administration Guide, Service Principals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link 2 - &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/tokens" alt="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/tokens" target="_blank"&gt;Tokens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link 3 - &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;Administration Guide, Service Principals (AWS)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/MicrosoftDocs/azure-docs/issues/105809" alt="https://github.com/MicrosoftDocs/azure-docs/issues/105809" target="_blank"&gt;Incorrect method of generating Access Tokens being referenced in API documentation. · Issue #105809 · MicrosoftDocs/azure-docs · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Our solution:(Still on going)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Granting temporary access to the users who need it through the traditional User AD setup. We're currently getting 403 errors with this but it's being investigated by databricks. &lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Wed, 22 Mar 2023 22:35:07 GMT</pubDate>
    <dc:creator>Chris_Shehu</dc:creator>
    <dc:date>2023-03-22T22:35:07Z</dc:date>
    <item>
      <title>On-Behalf of tokens disabled for Azure Environments?</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7228#M3149</link>
      <description>&lt;P&gt;While trying to setup a Power BI connection to the Azure Delta Lake we ran into several issues around Service Principals. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;1) The API listed on the learn.microsoft site (link 1 below) indicates that there is an API you can use to create SP tokens. When trying to utilize this functionality a message gets generated stating that on-behalf of is disabled. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;2) Documentation (Link 2) on using service-principals doesn't mention the above API or that Behalf-of is disabled. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;3) The path that's described uses an Azure AD Token process. This process only works if you're setting up a configuration that can send a token to request a temporary access token for use. (Rest API)&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;4) Our use case was in regards to Power BI so the application can't directly follow the process referenced and there isn't another solution provided. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;*It was noticed that the AWS documentation actually talks about using the API to get the On-Behalf of token. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I think there's room for improvement here when we're talking about documentation. I opened github request with Microsoft but it's not really moving. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Link 1 - &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/administration-guide/users-groups/service-principals" alt="https://learn.microsoft.com/en-us/azure/databricks/administration-guide/users-groups/service-principals" target="_blank"&gt;Administration Guide, Service Principals&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link 2 - &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/tokens" alt="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/tokens" target="_blank"&gt;Tokens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Link 3 - &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;Administration Guide, Service Principals (AWS)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/MicrosoftDocs/azure-docs/issues/105809" alt="https://github.com/MicrosoftDocs/azure-docs/issues/105809" target="_blank"&gt;Incorrect method of generating Access Tokens being referenced in API documentation. · Issue #105809 · MicrosoftDocs/azure-docs · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Our solution:(Still on going)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Granting temporary access to the users who need it through the traditional User AD setup. We're currently getting 403 errors with this but it's being investigated by databricks. &lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 22 Mar 2023 22:35:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7228#M3149</guid>
      <dc:creator>Chris_Shehu</dc:creator>
      <dc:date>2023-03-22T22:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: On-Behalf of tokens disabled for Azure Environments?</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7229#M3150</link>
      <description>&lt;P&gt;You`ve not had any more advancement on this have you?, we`ve just driven headling into the same brickwall.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 11:50:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7229#M3150</guid>
      <dc:creator>DrK</dc:creator>
      <dc:date>2023-03-31T11:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: On-Behalf of tokens disabled for Azure Environments?</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7230#M3151</link>
      <description>&lt;P&gt;No I can't seem to get any answers from anyone on this issue. The github issue has been open for a month. We had to use AD User accounts instead as a workaround. &lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 11:53:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7230#M3151</guid>
      <dc:creator>Chris_Shehu</dc:creator>
      <dc:date>2023-03-31T11:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: On-Behalf of tokens disabled for Azure Environments?</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7231#M3152</link>
      <description>&lt;P&gt;Hey Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just sharing this with you (were going to ask the question of databricks anyway) however, we have managed to get something working by;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/ Generating an AAD token (one of the huge ones) from the command line (i.e. &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/user-aad-token)" target="test_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/user-aad-token)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2/ Using THIS token as the Bearer token in the REST call to .../token-management/on-behalf-of/tokens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3/ This gives us a PAT and no error, this PAT then actually works in PowerBI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Disclaimer, we don`t know if this PAT is retaining it`s lifetime yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:46:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7231#M3152</guid>
      <dc:creator>DrK</dc:creator>
      <dc:date>2023-03-31T12:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: On-Behalf of tokens disabled for Azure Environments?</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7232#M3153</link>
      <description>&lt;P&gt;Thanks @Andy Skinner​&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:48:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7232#M3153</guid>
      <dc:creator>Chris_Shehu</dc:creator>
      <dc:date>2023-03-31T12:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: On-Behalf of tokens disabled for Azure Environments?</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7233#M3154</link>
      <description>&lt;P&gt;BTW the bearer token was generated using the service principles id in the --resource parameter, it`s effectively generating a bearer token on behalf of the sprinp.  Still not sure how it`s working!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 12:52:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7233#M3154</guid>
      <dc:creator>DrK</dc:creator>
      <dc:date>2023-03-31T12:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: On-Behalf of tokens disabled for Azure Environments?</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7234#M3155</link>
      <description>&lt;P&gt;Hi @Christopher Shehu​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope everything is going great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 01:54:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7234#M3155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-01T01:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: On-Behalf of tokens disabled for Azure Environments?</title>
      <link>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7235#M3156</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;i am new here from india, here to share some thoughts with you all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 10:50:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/on-behalf-of-tokens-disabled-for-azure-environments/m-p/7235#M3156</guid>
      <dc:creator>meetskorun</dc:creator>
      <dc:date>2023-04-04T10:50:15Z</dc:date>
    </item>
  </channel>
</rss>

