使用Power Shell登录到Power BI会引发错误"System.Net.WebException:无法解析远程名称:"localhost.fiddler"". [英] Login to Power BI with Power shell throws error "System.Net.WebException: The remote name could not be resolved: 'localhost.fiddler'"
问题描述
当我尝试使用Microsoft Power Shell ISE 登录到 Power BI 时:
Login-PowerBI
从软件包中下载:
When I'm trying to login to Power BI with Microsoft Power Shell ISE:
Login-PowerBI
from the Package: MicrosoftPowerBIMgmt, I'm getting the following error:
Failed to get ADAL token: Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: The r emote name could not be resolved: 'localhost.fiddler' at System.Net.HttpWebRequest.EndGetResponse...
I had a similar problem with Visual Studio NuGet service.
When PowerShell tries to log in to Power BI account (when executing command Login-PowerBI
), it executes AzureADWindowsAuthenticator.exe
, which looks for the configuration under:
MicrosoftPowerBIMgmt.Profile
→ version of power bi profile
→ lib
→ netstandard
→ WindowsAuthenticator
directory.
The configuration file is called
AzureADWindowsAuthenticator.exe.config
.
To solve the problem edit the configuration file as Administrator and add the following under <configuration>
section:
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true">
<proxy usesystemdefault="true" bypassonlocal="true" />
</defaultProxy>
<settings>
<ipv6 enabled="true"/>
</settings>
</system.net>
The final result should be like this:
这篇关于使用Power Shell登录到Power BI会引发错误"System.Net.WebException:无法解析远程名称:"localhost.fiddler"".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!