microsoft / powerbi-powershell

PowerShell community for Microsoft PowerBI. Here you will find resources and source for PowerShell modules targeting PowerBI.
MIT License
342 stars 118 forks source link

Get-PowerBIDashboard doesn't recognise logon #356

Open DRG2407 opened 2 years ago

DRG2407 commented 2 years ago

Connect-PowerBIServiceAccount Get-PowerBIDashboard -Scope Organization Get-PowerBIDashboard : Login first with Login-PowerBIServiceAccount At line:1 char:1

PS C:\Users\admdaniel.goodman> resolve-powerbierror -last

HistoryId: 21

Message : Login first with Login-PowerBIServiceAccount StackTrace : at Microsoft.PowerBI.Commands.Common.PowerBICmdlet.AssertProfileExists() at Microsoft.PowerBI.Commands.Common.PowerBICmdlet.BeginProcessing() at Microsoft.PowerBI.Commands.Reports.GetPowerBIDashboard.BeginProcessing() at System.Management.Automation.Cmdlet.DoBeginProcessing() at System.Management.Automation.CommandProcessorBase.DoBegin() Exception : System.Exception InvocationInfo : {Get-PowerBIDashboard} Line : Get-PowerBIDashboard -Scope Organization Position : At line:1 char:1

jayanth2830 commented 2 years ago

@DRG2407 Do you get an error when running Connect-PowerBIServiceAccount? If not, does the login command output the tenant ID and user name?

zhunipingan commented 9 months ago

the same issue, do you have any solution