Skip to content

Missing required library for Connect-MgGraph in PowerShell Core #608

@RinkAttendant6

Description

@RinkAttendant6

On the installation page, it states

The Microsoft Graph PowerShell SDK is published on the PowerShell Gallery. You can install the SDK in PowerShell Core or Windows PowerShell using the following command.

However I get this error when I try to run Connect-MgGraph in PowerShell Core (various combinations of flags were tried, including using ClientId and Certificate):

> Connect-MgGraph
Connect-MgGraph: Could not load file or assembly 'System.IdentityModel.Tokens.Jwt, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621)

It appears to work fine in PowerShell 5 both using Device Code Flow and Client Credentials (certificate).

Does something else need to be installed for it to work on PowerShell Core, and if so, can the documentation be updated to reflect that?
AB#8837

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions