<?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: creating a lakehouse connection using service principal in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4695905#M9345</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having the same issue here, trying to connect to the Lakehouse but I don't see the option to use service principal, only organizational account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_0-1747395934664.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268736iC3BE6431CEF6DF72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_0-1747395934664.png" alt="carlosgeovany_0-1747395934664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My service principal is and admin int the workspace:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_1-1747396057436.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268737i26B38530A2D0AAE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_1-1747396057436.png" alt="carlosgeovany_1-1747396057436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I even tried the Azure SQL Server DB connector and it create the connection and load the tables and schemas:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_3-1747396392421.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268739iB014DF3EF846EDC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_3-1747396392421.png" alt="carlosgeovany_3-1747396392421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_4-1747396465426.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268741i31F764FDCC09970B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_4-1747396465426.png" alt="carlosgeovany_4-1747396465426.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when publish the Dataflow got this error 24559 DML statemements:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_2-1747396177656.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268738i273ED21DEC853202/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_2-1747396177656.png" alt="carlosgeovany_2-1747396177656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 May 2025 11:55:05 GMT</pubDate>
    <dc:creator>carlosgeovany</dc:creator>
    <dc:date>2025-05-16T11:55:05Z</dc:date>
    <item>
      <title>creating a lakehouse connection using service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4685923#M9169</link>
      <description>&lt;P&gt;how to create a new connection to a lakehouse inside my fabric environment using service principal?&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 05:28:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4685923#M9169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-09T05:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: creating a lakehouse connection using service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4686018#M9171</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thank you for reaching out microsoft fabric community forum.&lt;/P&gt;
&lt;P class="" data-start="90" data-end="186"&gt;To connect to a Lakehouse in Microsoft Fabric using a Service Principal, follow these steps:&lt;/P&gt;
&lt;OL data-start="188" data-end="842"&gt;
&lt;LI class="" data-start="188" data-end="370"&gt;
&lt;P class="" data-start="191" data-end="225"&gt;Register a Service Principal&lt;/P&gt;
&lt;UL data-start="229" data-end="370"&gt;
&lt;LI class="" data-start="229" data-end="370"&gt;
&lt;P class="" data-start="231" data-end="370"&gt;In Azure Portal, go to Azure AD &amp;gt; App registrations, register an app, and note the Client ID, Tenant ID, and Client Secret.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="372" data-end="541"&gt;
&lt;P class="" data-start="375" data-end="403"&gt;Grant Access in Fabric&lt;/P&gt;
&lt;UL data-start="407" data-end="541"&gt;
&lt;LI class="" data-start="407" data-end="541"&gt;
&lt;P class="" data-start="409" data-end="541"&gt;Go to your Fabric workspace, open Settings &amp;gt; Permissions, and add the Service Principal with a Member or Admin role.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="543" data-end="842"&gt;
&lt;P class="" data-start="546" data-end="573"&gt;Create the Connection&lt;/P&gt;
&lt;UL data-start="577" data-end="842"&gt;
&lt;LI class="" data-start="577" data-end="690"&gt;
&lt;P class="" data-start="579" data-end="690"&gt;When creating a new connection (in a Dataflow Gen2, Pipeline, or Notebook), select Lakehouse as the target.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="694" data-end="807"&gt;
&lt;P class="" data-start="696" data-end="807"&gt;Choose Service Principal authentication, and enter the Tenant ID, Client ID, and Client Secret.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="811" data-end="842"&gt;
&lt;P class="" data-start="813" data-end="842"&gt;Save and test the connection.&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;If this solution helps, please consider giving us&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;and&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;accepting it as the solution&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;so that it may assist other members in the community&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 09 May 2025 06:41:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4686018#M9171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-09T06:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: creating a lakehouse connection using service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4690733#M9267</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 12:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4690733#M9267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-13T12:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: creating a lakehouse connection using service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4695905#M9345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having the same issue here, trying to connect to the Lakehouse but I don't see the option to use service principal, only organizational account.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_0-1747395934664.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268736iC3BE6431CEF6DF72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_0-1747395934664.png" alt="carlosgeovany_0-1747395934664.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My service principal is and admin int the workspace:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_1-1747396057436.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268737i26B38530A2D0AAE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_1-1747396057436.png" alt="carlosgeovany_1-1747396057436.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I even tried the Azure SQL Server DB connector and it create the connection and load the tables and schemas:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_3-1747396392421.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268739iB014DF3EF846EDC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_3-1747396392421.png" alt="carlosgeovany_3-1747396392421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_4-1747396465426.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268741i31F764FDCC09970B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_4-1747396465426.png" alt="carlosgeovany_4-1747396465426.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when publish the Dataflow got this error 24559 DML statemements:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="carlosgeovany_2-1747396177656.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1268738i273ED21DEC853202/image-size/medium?v=v2&amp;amp;px=400" role="button" title="carlosgeovany_2-1747396177656.png" alt="carlosgeovany_2-1747396177656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 11:55:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4695905#M9345</guid>
      <dc:creator>carlosgeovany</dc:creator>
      <dc:date>2025-05-16T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: creating a lakehouse connection using service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4707539#M9602</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 12:17:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4707539#M9602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-26T12:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: creating a lakehouse connection using service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4711556#M9724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please &lt;STRONG&gt;Accept it as a solution&lt;/STRONG&gt; and give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;' so others can find it easily.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 07:13:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4711556#M9724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-29T07:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: creating a lakehouse connection using service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4720072#M9906</link>
      <description>&lt;P&gt;@Anonymous&lt;/a&gt;&amp;nbsp;Did you see this reply from&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/593980"&gt;@carlosgeovany&lt;/a&gt;? Your suggested solution does not work. I can confirm; I have the same issue as&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/593980"&gt;@carlosgeovany&lt;/a&gt;&amp;nbsp;-- there's no option to sign in with anything other than an organizational account when creating a new connection in this context. What are we missing?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 16:18:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4720072#M9906</guid>
      <dc:creator>LarsKemmann</dc:creator>
      <dc:date>2025-06-04T16:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: creating a lakehouse connection using service principal</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4725147#M10009</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/482520"&gt;@LarsKemmann&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/593980"&gt;@carlosgeovany&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="90" data-end="142"&gt;Thanks for the screenshots and clarification they’re really helpful.&lt;/P&gt;
&lt;P data-start="144" data-end="407"&gt;You’re right, currently Dataflow Gen2 doesn’t support Service Principal authentication when connecting to a Lakehouse. The only available option in the UI is using an Organizational Account, even if your Service Principal is an Admin in the workspace.&lt;/P&gt;
&lt;P data-start="409" data-end="721"&gt;Service Principals can be used to access a Lakehouse via Notebooks or APIs by using Azure AD tokens, but not yet through Dataflow Gen2. The error you're seeing(&amp;nbsp;24559 DML statements not supported) is likely due to this limitation — Dataflows require a user-based connection to perform write operations.&lt;/P&gt;
&lt;P data-start="723" data-end="870"&gt;Your workaround using Azure SQL is creative, but writing to Lakehouse from Dataflows still requires a user context, so it runs into the same issue.&lt;/P&gt;
&lt;P data-start="872" data-end="1030"&gt;For now, we recommend using a user account for Dataflow connections. If you need to automate using a Service Principal, consider using a Notebook instead&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;If this solution helps, please consider giving us&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;and&amp;nbsp;&lt;I&gt;&lt;STRONG&gt;accepting it as the solution&lt;/STRONG&gt;&lt;/I&gt;&amp;nbsp;so that it may assist other members in the community&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 06:55:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/creating-a-lakehouse-connection-using-service-principal/m-p/4725147#M10009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-06-09T06:55:39Z</dc:date>
    </item>
  </channel>
</rss>

