<?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: Can i connect from powershell to fabric datawarehouse sql endpoint? in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3416541#M54</link>
    <description>&lt;P&gt;Thanks Himanshu. Please keep me posted on progress.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Sep 2023 21:59:54 GMT</pubDate>
    <dc:creator>sajugeorge</dc:creator>
    <dc:date>2023-09-05T21:59:54Z</dc:date>
    <item>
      <title>Can i connect from powershell to fabric datawarehouse sql endpoint?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3411568#M50</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I am trying to connect to fabric datawarehouse SQL endpoint using powershell to execute a sql command. Is the below method correct?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am getting "login failed with invalid authentication method".&lt;BR /&gt;can you please share a sample?&lt;BR /&gt;The firewall is open.&amp;nbsp;I can connect using SSMS to the&amp;nbsp;fabric datawarehouse SQL endpoint from the same box and login to azure with same account.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 20:26:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3411568#M50</guid>
      <dc:creator>sajugeorge</dc:creator>
      <dc:date>2023-09-01T20:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can i connect from powershell to fabric datawarehouse sql endpoint?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3411817#M51</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't tried this yet, but I can add some details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the Get-AzAccessToken opening an interactive login window? If not, probably this is why it's failing. It's expecting that you use Connect-AzAccount before this command, to interactive sign in. The token will be retrieved from your login.&lt;BR /&gt;&lt;BR /&gt;If your plan is to make a non-interactive script, you would need an app registration.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Some links which may help:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://svitla.com/blog/azure-sql-database" target="_blank"&gt;https://svitla.com/blog/azure-sql-database&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://thomasthornton.cloud/2020/10/06/query-azure-sql-database-using-service-principal-with-powershell/" target="_blank"&gt;https://thomasthornton.cloud/2020/10/06/query-azure-sql-database-using-service-principal-with-powershell/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/ehrnst/e34b54d61718405552839532db48734c" target="_blank"&gt;https://gist.github.com/ehrnst/e34b54d61718405552839532db48734c&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dennes&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 02:26:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3411817#M51</guid>
      <dc:creator>DennesTorres</dc:creator>
      <dc:date>2023-09-02T02:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can i connect from powershell to fabric datawarehouse sql endpoint?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3414039#M52</link>
      <description>&lt;P&gt;Hi Dennes,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes! it opens interactive login with MFA. Same as SSMS login window (which opens interactive login with MFA). SSMS login works and connection is made. Powershell isthrowing the above error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 14:07:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3414039#M52</guid>
      <dc:creator>sajugeorge</dc:creator>
      <dc:date>2023-09-04T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can i connect from powershell to fabric datawarehouse sql endpoint?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3416539#M53</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="611627" data-lia-user-login="sajugeorge" class="lia-mention lia-mention-user"&gt;sajugeorge&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using the Fabric community.&lt;/P&gt;
&lt;P&gt;I think the powershell script works when you have the sql end point under your subscription . I just did a simple search for&amp;nbsp; the sql end point on the azure portal under my suuscription and its not there . To me at this time, it looks you cannot query SQL EP from powershel , I will reach out to the internal team to confirm that .&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;HImanshu &lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 21:56:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3416539#M53</guid>
      <dc:creator>HimanshuS-msft</dc:creator>
      <dc:date>2023-09-05T21:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can i connect from powershell to fabric datawarehouse sql endpoint?</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3416541#M54</link>
      <description>&lt;P&gt;Thanks Himanshu. Please keep me posted on progress.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 21:59:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/Can-i-connect-from-powershell-to-fabric-datawarehouse-sql/m-p/3416541#M54</guid>
      <dc:creator>sajugeorge</dc:creator>
      <dc:date>2023-09-05T21:59:54Z</dc:date>
    </item>
  </channel>
</rss>

