microsoft / microsoft/powerbi-powershell

Get-PowerBIDashboard doesn't recognise logon

Open
#356 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
413
Forks
134
Avg merge
33m
Merged PRs (30d)
1

Description

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

  • Get-PowerBIDashboard -Scope Organization
  •   + CategoryInfo          : NotSpecified: (:) [Get-PowerBIDashboard], Exception
      + FullyQualifiedErrorId : System.Exception,Microsoft.PowerBI.Commands.Reports.GetPowerBIDashboard
    
    

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
+ Get-PowerBIDashboard -Scope Organization
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 21

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the sequence with Connect-PowerBIServiceAccount followed by Get-PowerBIDashboard -Scope Organization, then start at Microsoft.PowerBI.Commands.Common.PowerBICmdlet.AssertProfileExists() in the stack trace. Compare the connection state with what Get-PowerBIDashboard expects; done means the command recognizes the completed service-account login and returns dashboards without the login error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
api, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.