Skip to content

[BUG] Outdated Microsoft.Graph.Core.dll in PnP.PowerShell #3735

Closed as not planned
@YuriySamorodov

Description

@YuriySamorodov

Reporting an Issue or Missing Feature

I am reporting a bug.

Expected behavior

This is a follow up on #3395

When PnP.PowerShell and Microsoft.Graph modules are used ion the same script, it causes Get-PnPGroup -All to fail with the following error:

Get-MgGroup_List: Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider' from assembly 'Microsoft.Graph.Core, Version=1.25.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

According to the blog post https://mortenknudsen.net/?p=2631, the old Microsoft.Graph.Core version 1.25.1.0 from 2021 seems to originate from the module dependencies of PnP.PowerShell.
image

image

In 2024 Microsoft.Graph.Core.dll has version 3.0.9.0
image

Any chance you can equip PnP.PowerShell with the newer version of Microsoft.Graph.Core.dll?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions