<?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: Fabric Warehouse - Service Principal Connection in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3552697#M898</link>
    <description>&lt;P&gt;Maybe this blog will help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://debruyn.dev/2023/how-to-use-service-principal-authentication-to-access-microsoft-fabrics-onelake/" target="_blank"&gt;How to use service principal authentication to access Microsoft Fabric's OneLake - Sam Debruyn&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Nov 2023 15:49:18 GMT</pubDate>
    <dc:creator>AndyDDC</dc:creator>
    <dc:date>2023-11-26T15:49:18Z</dc:date>
    <item>
      <title>Fabric Warehouse - Service Principal Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3552633#M895</link>
      <description>&lt;P&gt;I want to build an application to write data into a Fabric Warehouse.&lt;/P&gt;&lt;P&gt;This article says that there are 2 ways to connection to a Fabric Warehouse SQL Endpoint:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-warehouse/connectivity" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-warehouse/connectivity&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;In Microsoft Fabric, two types of authenticated users are supported through the SQL connection string:&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;Microsoft Entra ID (formerly Azure Active Directory) user principals, or user identities&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Microsoft Entra ID (formerly Azure Active Directory) service principals&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am unable to find any guidance on how to configure the service principal connectivity.&lt;/P&gt;&lt;P&gt;Using a user principal via MFA authentication is not possible in my scenario.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please provide a step-by-step process to create the service principal, give it the necessary permissions in the Fabric WH, and use it to connect via the SQL endpoint?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 14:19:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3552633#M895</guid>
      <dc:creator>WDarwish</dc:creator>
      <dc:date>2023-11-26T14:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Warehouse - Service Principal Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3552654#M896</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="65016" data-lia-user-login="WDarwish" class="lia-mention lia-mention-user"&gt;WDarwish&lt;/a&gt;&amp;nbsp;@I don't think there's any specific documentation in the fabric docs, but you can follow this guide here to create a service principal&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/purview/create-service-principal-azure" target="_blank"&gt;https://learn.microsoft.com/en-us/purview/create-service-principal-azure&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then you give the service principal the required permissions in the workspace or on the warehouse itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then to use the service principal is going to depend on your application&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 14:37:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3552654#M896</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2023-11-26T14:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Warehouse - Service Principal Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3552660#M897</link>
      <description>&lt;P&gt;I actually created the principal as per this very same guide. I cannot get that principal to show up within Fabric WH when sharing or setting permissions.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 14:39:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3552660#M897</guid>
      <dc:creator>WDarwish</dc:creator>
      <dc:date>2023-11-26T14:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Warehouse - Service Principal Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3552697#M898</link>
      <description>&lt;P&gt;Maybe this blog will help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://debruyn.dev/2023/how-to-use-service-principal-authentication-to-access-microsoft-fabrics-onelake/" target="_blank"&gt;How to use service principal authentication to access Microsoft Fabric's OneLake - Sam Debruyn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2023 15:49:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3552697#M898</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2023-11-26T15:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Warehouse - Service Principal Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3554442#M899</link>
      <description>&lt;P&gt;Great find! Exactly what I was after. Managed to authenticate using the principal and got things running. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 15:03:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3554442#M899</guid>
      <dc:creator>WDarwish</dc:creator>
      <dc:date>2023-11-27T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Warehouse - Service Principal Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3724858#M900</link>
      <description>&lt;P&gt;I am trying to achieve the exact similar thing, however when authenticating with&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;ClientSecretCredential&amp;nbsp;&lt;/STRONG&gt;in python, I am unable to write to the warehouses. I am able to read from the same warehouses though.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;More specifically, I get the following Error:&lt;BR /&gt;The INSERT permission or external policy action 'Microsoft.Sql/Sqlservers/Databases/Schemas/Tables/Rows/Insert' was denied on the object '[table]', database '[warehouse name]', schema 'dbo'.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When using&amp;nbsp;&lt;STRONG&gt;AzureCliCredential,&amp;nbsp;&lt;/STRONG&gt;this problem does not persist.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have tried making the service principle admin (similar to my az credentials), but that also did not help.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any clue how to have the service principle write to the warehouse?&lt;/DIV&gt;&lt;DIV&gt;kind regards,&lt;/DIV&gt;&lt;DIV&gt;Kjell&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:54:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3724858#M900</guid>
      <dc:creator>kjellvs</dc:creator>
      <dc:date>2024-02-26T18:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Warehouse - Service Principal Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3724950#M901</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="633984" data-lia-user-login="kjellvs" class="lia-mention lia-mention-user"&gt;kjellvs&lt;/a&gt;&amp;nbsp;how are you trying to write to the Warehouse? If you are trying to write to the storage directly it won't work, inserts into the warehouse can only be done via the sql endpoint of the warehouse - just checking to see how you're inserting so please forgive me if you already know this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 19:56:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3724950#M901</guid>
      <dc:creator>AndyDDC</dc:creator>
      <dc:date>2024-02-26T19:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric Warehouse - Service Principal Connection</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3726404#M902</link>
      <description>&lt;P&gt;Hi Andy, thank you for the reply. I was indeed trying to write via the SQL endpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a fix by giving:&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;GRANT INSERT ON SCHEMA::dbo TO public;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't know I had to configure these additional rights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kjell&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 07:10:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Fabric-Warehouse-Service-Principal-Connection/m-p/3726404#M902</guid>
      <dc:creator>kjellvs</dc:creator>
      <dc:date>2024-02-27T07:10:17Z</dc:date>
    </item>
  </channel>
</rss>

