<?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: Unable to Connect with Power BI Service using PowerShell in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/484486#M14868</link>
    <description>&lt;P&gt;I am getting exactly the same errors. I would very much appreciate some help too.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Aug 2018 22:09:51 GMT</pubDate>
    <dc:creator>lordtopcat</dc:creator>
    <dc:date>2018-08-08T22:09:51Z</dc:date>
    <item>
      <title>Unable to Connect with Power BI Service using PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/483356#M14839</link>
      <description>&lt;P&gt;I have installed PowerShell for Power BI using following Code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Install-Module -Name MicrosoftPowerBIMgmt&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is installed successfully.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-08-08_9-55-31.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/111595i56727C9E96BB3480/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-08-08_9-55-31.png" alt="2018-08-08_9-55-31.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now,&amp;nbsp;I used following code-snippet to connect&amp;nbsp;with Power BI Service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Login-PowerBI&lt;/PRE&gt;&lt;P&gt;When I executed the code it shows me an error like:&lt;/P&gt;&lt;PRE&gt;Login-PowerBI : The 'Login-PowerBI' command was found in the module 'MicrosoftPowerBIMgmt.Profile', but the module 
could not be loaded. For more information, run 'Import-Module MicrosoftPowerBIMgmt.Profile'.
At line:1 char:1
+ Login-PowerBI
+ ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Login-PowerBI:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule&lt;/PRE&gt;&lt;P&gt;Please refer the screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_4.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/111594i56C0B1646C1A9E8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_4.png" alt="Screenshot_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried to import&amp;nbsp;&amp;nbsp;module&amp;nbsp;MicrosoftPowerBIMgmt.Profile using following code:&lt;/P&gt;&lt;PRE&gt;Import-Module MicrosoftPowerBIMgmt.Profile&lt;/PRE&gt;&lt;P&gt;It shows me following error:&lt;/P&gt;&lt;PRE&gt;Import-Module : Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. Reference assemblies should not be loaded for 
execution.  They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)
At line:1 char:1
+ Import-Module MicrosoftPowerBIMgmt.Profile
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Import-Module], BadImageFormatException
    + FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand
 &lt;/PRE&gt;&lt;P&gt;Below is a screenshot for the same.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/111597iB8C3867670C28E73/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest an appropriate solution for it&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 04:34:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/483356#M14839</guid>
      <dc:creator>Dhruvin</dc:creator>
      <dc:date>2018-08-08T04:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect with Power BI Service using PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/484486#M14868</link>
      <description>&lt;P&gt;I am getting exactly the same errors. I would very much appreciate some help too.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 22:09:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/484486#M14868</guid>
      <dc:creator>lordtopcat</dc:creator>
      <dc:date>2018-08-08T22:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect with Power BI Service using PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/484963#M14886</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems you need to change the&amp;nbsp;&lt;SPAN&gt;ExecutionPolicy of PowerShell. Please refer to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://social.technet.microsoft.com/Forums/en-US/d8ae9003-b8f9-4022-baeb-5ceaf28416ac/unable-to-use-appv-5-powershell-cmdlets?forum=mdopappv" target="_self"&gt;unable-to-use-appv-5-powershell-cmdlets&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://stackoverflow.com/questions/35191477/azure-powershell-will-not-connect" target="_self"&gt;azure-powershell-will-not-connect&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-6" target="_self"&gt;module/microsoft.powershell.security/set-executionpolicy?view=powershell-6&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please also check out if &lt;A href="https://github.com/Microsoft/powerbi-powershell#supported-environments-and-powershell-versions" target="_self"&gt;the environment&lt;/A&gt; is supported.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: 'Segoe UI'; font-size: 10.5pt; color: #333333;"&gt;Dale&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 08:43:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/484963#M14886</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-08-09T08:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect with Power BI Service using PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/486859#M14929</link>
      <description>&lt;P&gt;Still not working&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2018 04:38:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/486859#M14929</guid>
      <dc:creator>Dhruvin</dc:creator>
      <dc:date>2018-08-11T04:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect with Power BI Service using PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/489269#M14990</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was unable to connect with the Power BI Service with .Net Framework 4.7.02053&amp;nbsp;installed on my PC.&amp;nbsp; However, when .Net Framework 4.7.2 was installed from &lt;A href="https://www.microsoft.com/net/download/dotnet-framework-runtime" target="_self"&gt;here&lt;/A&gt;, I found that I was then able to connect to the Power BI Service using Powershell and run the other PowerShell Management Cmdlets which call the Rest API.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 12:10:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/489269#M14990</guid>
      <dc:creator>JaneLHunt</dc:creator>
      <dc:date>2018-08-14T12:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect with Power BI Service using PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/489530#M15000</link>
      <description>&lt;P&gt;I had the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cheked my PC environments based on this - &lt;A title="Supported Environments and PowerShell Versions" href="https://github.com/Microsoft/powerbi-powershell#supported-environments-and-powershell-versions" target="_self"&gt;Supported Environments and PowerShell Versions&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Windows PowerShell v3.0 and up with .NET 4.6.1 or above are required.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, I updated PowerShell and .NET to latest versions and restart my PC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in my case, issue has been resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 17:15:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/489530#M15000</guid>
      <dc:creator>anosul</dc:creator>
      <dc:date>2018-08-14T17:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect with Power BI Service using PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/489734#M15002</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/77043"&gt;@JaneLHunt&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have upgraded ASP.Net framework to 4.7.2 and it is working fine now.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Aug 2018 01:51:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/489734#M15002</guid>
      <dc:creator>Dhruvin</dc:creator>
      <dc:date>2018-08-15T01:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect with Power BI Service using PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/497356#M15233</link>
      <description>&lt;P&gt;Just aligning this Community thread with the associated known GitHub issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Installing .NET Framework 4.7.2 solves this one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/powerbi-powershell/issues/41?_pjax=%23js-repo-pjax-container#issuecomment-415391120" target="_blank"&gt;https://github.com/Microsoft/powerbi-powershell/issues/41?_pjax=%23js-repo-pjax-container#issuecomment-415391120&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 12:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/497356#M15233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-23T12:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect with Power BI Service using PowerShell</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/544489#M16906</link>
      <description>&lt;P&gt;I installed 4.7.2 from the link provided in this post and still it is giving me the same error of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The term 'Login-PowerBI' is not recognized as the name of a cmdlet, function, script&lt;BR /&gt;file, or operable program. Check the spelling of the name, or if a path was included, verify that the&lt;BR /&gt;path is correct and try again."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After&amp;nbsp;checking a bit futher I got .NET version 4.7.03062 (I am working in Windows 7).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something as I have downloaded and installed .NET framework 4.7.2 from this &lt;A href="https://www.microsoft.com/net/download/dotnet-framework-runtime" target="_self"&gt;link&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can this be a path issue. Please help me with this.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 10:00:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Connect-with-Power-BI-Service-using-PowerShell/m-p/544489#M16906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-17T10:00:56Z</dc:date>
    </item>
  </channel>
</rss>

