microsoft / microsoft/powerbi-powershell

Connect-PowerBIServiceAccount fails on assembly 'Microsoft.Identity.Client, Version=4.25.0.0

Open
#308 13 comments 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

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.

image

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.