microsoft / microsoft/powerbi-powershell
Suddenly unable to connect to the Power BI Service using Connect-PowerBIServiceAccount
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
I've developed a script which performs basic operations with the Power BI service using PowerShell.
All worked fine until 4 days ago and now suddenly I'm not able to login anymore.
By default login is with a Service Principal, however I also tried with a normal AAD account but no luck (login with UI to app.powerbi.com works with the AAD account). I haven't changed anything in the script or on the tenant (it is an O365 demo tenant).
Command:
$ServicePrincipalId = "xxxxx"
$ServicePrincipalSecret = "xxxxx"
$tenant = "xxxx"
$secureServicePrincipalPassword= ConvertTo-SecureString $ServicePrincipalSecret -AsPlainText -Force;
$servicePrincipal = New-Object -TypeName PSCredential -ArgumentList $ServicePrincipalId, $secureServicePrincipalPassword
Connect-PowerBIServiceAccount -ServicePrincipal -Credential $servicePrincipal -Environment Public -Tenant $tenant`
Error:
Connect-PowerBIServiceAccount : One or more errors occurred.
At line:1 char:1
+ Connect-PowerBIServiceAccount -Credential (Get-Credential)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], AggregateException
+ FullyQualifiedErrorId : System.AggregateException
Module Version:
1.0.867 (current version) MicrosoftPowerBIMgmt.Profile
Maybe @jayanth2830 can help as last committer?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported command with MicrosoftPowerBIMgmt.Profile version 1.0.867, using both the service-principal and AAD-account paths through Connect-PowerBIServiceAccount. Compare the resulting AggregateException with the module's authentication behavior; done means identifying the cause and documenting or resolving the login failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100