Skip to content

Authenticate with Service Principal - Error #59

@MarchingBug

Description

@MarchingBug

Running this script:

$applicationid ="xxxxxxx"
$principalPassword = ConvertTo-SecureString "xxxxx" -AsPlainText -Force
$psCred = New-Object System.Management.Automation.PSCredential($applicationid, $principalPassword)

Connect-PowerBIServiceAccount -ServicePrincipal -Credential $psCred

Keep getting this error:

Connect-PowerBIServiceAccount : One or more errors occurred.
At line:23 char:1

  • Connect-PowerBIServiceAccount -ServicePrincipal -Credential $psCred
  •   + CategoryInfo          : WriteError: (Microsoft.Power...IServiceAccount:ConnectPowerBIServiceAccount) [Connect-PowerBIServic 
     eAccount], AggregateException
      + FullyQualifiedErrorId : One or more errors occurred.,Microsoft.PowerBI.Commands.Profile.ConnectPowerBIServiceAccount
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions