<?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: SQL External table in KQL database using user assigned managed identity in Eventhouse and KQL</title>
    <link>https://community.fabric.microsoft.com/t5/Eventhouse-and-KQL/SQL-External-table-in-KQL-database-using-user-assigned-managed/m-p/3972027#M91</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="731950" data-lia-user-login="MatthiasA" class="lia-mention lia-mention-user"&gt;MatthiasA&lt;/a&gt; &lt;SPAN&gt;Can you set up a user-assigned managed identity for your Azure Data Explorer cluster, and allow the managed identity read and write permissions to the external resource.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Then, use the managed identity’s credentials in the connection string for your external table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also run this command to set a managed identity policy on the cluster, enabling its use with external tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;.alter-merge policy managed_identity&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindy see&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://techcommunity.microsoft.com/t5/azure-database-support-blog/lesson-learned-129-using-data-source-external-from-azure-sql/ba-p/1443210?WT.mc_id=%3Fwt.mc_id%3Dstudentamb_357518" target="_self"&gt;@Jose Manuel Jurado Diaz&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;blogpost&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and &lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://learn.microsoft.com/en-us/azure/data-explorer/external-tables-managed-identities?tabs=user-assigned%2Cazure-storage&amp;amp;WT.mc_id=%3Fwt.mc_id%3Dstudentamb_357518#prerequisites" target="_self"&gt;learn microsoft&lt;/A&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;EM&gt;If this post&amp;nbsp;helps, please consider&amp;nbsp;&lt;STRONG&gt;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 17:03:49 GMT</pubDate>
    <dc:creator>DallasBaba</dc:creator>
    <dc:date>2024-06-04T17:03:49Z</dc:date>
    <item>
      <title>SQL External table in KQL database using user assigned managed identity</title>
      <link>https://community.fabric.microsoft.com/t5/Eventhouse-and-KQL/SQL-External-table-in-KQL-database-using-user-assigned-managed/m-p/3957815#M84</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We would like to create an external table within the KQL database to an azure SQL database containing metadata values.&lt;/P&gt;&lt;P&gt;Ideally we would like to use system assigned managed identities, but although we have a P1 capacity this feature is not enabled (you need a fabric capacity).&lt;/P&gt;&lt;P&gt;The idea was to create an application registration within Azure Entra ID, assign it the proper permissions to the Azure SQL and use the credentials of the application registration in the connection string (&lt;A href="https://learn.microsoft.com/en-us/sql/connect/ado-net/sql/azure-active-directory-authentication?view=sql-server-ver16#using-service-principal-authentication" target="_self"&gt;link&lt;/A&gt; to connection string with service principal authentication type) when creating the external table inside KQL database.&lt;/P&gt;&lt;P&gt;However, when querying the external table we do get an error message stating "login failed for login". Using the same connection string in a simple C# program succeeds in retrieving the data from the SQL (if you would use the&amp;nbsp;Microsoft.Data.SqlClient nuget package instead of the System.Data.SqlClient one). I am assuming it is thus (currently) impossible to create an external table using a user assigned managed identity. Is there another good way to create these external tables in a secure way or is username/password (or managed identity when using F64 and up) the only way?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 11:18:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Eventhouse-and-KQL/SQL-External-table-in-KQL-database-using-user-assigned-managed/m-p/3957815#M84</guid>
      <dc:creator>MatthiasA</dc:creator>
      <dc:date>2024-05-29T11:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL External table in KQL database using user assigned managed identity</title>
      <link>https://community.fabric.microsoft.com/t5/Eventhouse-and-KQL/SQL-External-table-in-KQL-database-using-user-assigned-managed/m-p/3972027#M91</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="731950" data-lia-user-login="MatthiasA" class="lia-mention lia-mention-user"&gt;MatthiasA&lt;/a&gt; &lt;SPAN&gt;Can you set up a user-assigned managed identity for your Azure Data Explorer cluster, and allow the managed identity read and write permissions to the external resource.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Then, use the managed identity’s credentials in the connection string for your external table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also run this command to set a managed identity policy on the cluster, enabling its use with external tables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;.alter-merge policy managed_identity&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindy see&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://techcommunity.microsoft.com/t5/azure-database-support-blog/lesson-learned-129-using-data-source-external-from-azure-sql/ba-p/1443210?WT.mc_id=%3Fwt.mc_id%3Dstudentamb_357518" target="_self"&gt;@Jose Manuel Jurado Diaz&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;blogpost&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and &lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="https://learn.microsoft.com/en-us/azure/data-explorer/external-tables-managed-identities?tabs=user-assigned%2Cazure-storage&amp;amp;WT.mc_id=%3Fwt.mc_id%3Dstudentamb_357518#prerequisites" target="_self"&gt;learn microsoft&lt;/A&gt;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;EM&gt;If this post&amp;nbsp;helps, please consider&amp;nbsp;&lt;STRONG&gt;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 17:03:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Eventhouse-and-KQL/SQL-External-table-in-KQL-database-using-user-assigned-managed/m-p/3972027#M91</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2024-06-04T17:03:49Z</dc:date>
    </item>
  </channel>
</rss>

