microsoft / microsoft/powerbi-powershell
Connect-PowerBIServiceAccount fails on assembly 'Microsoft.Identity.Client, Version=4.25.0.0
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 413
- Forks
- 134
- Avg merge
- 33m
- Merged PRs (30d)
- 1
Description
I have confirmed that I have the latest update of the MicrosoftPowerBIMgmt library per the breaking change post here.
However, when I try to run Connect-PowerBIServiceAccount it fails with the error "Connect-PowerBIServiceAccount: One or more errors occurred. (Could not load file or assembly 'Microsoft.Identity.Client, Version=4.25.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'. The system cannot find the file specified.)"
Running on Windows Datacenter 2016 Server, PowerShell Version 7.1.3
Here is a Get-InstalledModule list for the full picture.

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 Connect-PowerBIServiceAccount on Windows Server 2016 with PowerShell 7.1.3 and the installed MicrosoftPowerBIMgmt modules listed in the issue. Trace the module's dependency loading for Microsoft.Identity.Client, and consider the issue done when the command runs without the missing-assembly error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- authentication, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100