msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

SqlServer module incompatibility with Microsoft.Graph.Authentication?

Open hstrang opened this issue 1 year ago • 2 comments

If SqlServer module 22.2.0 is imported before Microsoft.Graph.Authentication (tested with 2.12.0 and 2.10.0), Connect-MgGraph fails.

PS C:> Import-Module SqlServer PS C:> Import-Module Microsoft.Graph.Authentication PS C:> Connect-MgGraph Connect-MgGraph: Method not found: 'Void Azure.Core.TokenRequestContext..ctor(System.String[], System.String, System.String, System.String, Boolean)'.

Both with Windows PowerShell 5.1.20348.2227 and PowerShell 7.3.9, Windows Server 2022 build 20348.2227.

hstrang avatar Feb 05 '24 16:02 hstrang

I have the same problem. I have to load the modules in a specific order to get around this problem.

Yasvah avatar Apr 24 '24 14:04 Yasvah

I have the same issue, looks like I get to choose either I use Graph or SQL, but not both as one or the other fails in PS 7.4.2

fenster1138p avatar May 17 '24 13:05 fenster1138p