microsoft / microsoft/powerbi-powershell

Connect-PowerBIServiceAccount : Asking for ServicePrincipal flag for non-interactive user login

Open
#227 1 comment 1 reaction 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

Hi,

I am trying to use Connect-PowerBIServiceAccount to non interactively login to PowerBI, using the below command,

Command:
Connect-PowerBIServiceAccount -Credential $PbiCredential

However this is asking for ServicePrincipal flag ?!

Error:
cmdlet Connect-PowerBIServiceAccount at command pipeline position 1
Supply values for the following parameters:
ServicePrincipal:

Module Version:

Binary 1.0.326 MicrosoftPowerBIMgmt.Profile
Binary 1.0.326 MicrosoftPowerBIMgmt.Workspaces

Powershell:

Major Minor Build Revision

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

Start by reproducing Connect-PowerBIServiceAccount -Credential $PbiCredential with MicrosoftPowerBIMgmt.Profile 1.0.326 and the supplied PowerShell environment. No source file or test is named; done means establishing whether the non-interactive login behavior is incorrect and documenting or correcting the handling of the ServicePrincipal parameter.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
authentication, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.