msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
SqlServer module incompatibility with Microsoft.Graph.Authentication?
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.
I have the same problem. I have to load the modules in a specific order to get around this problem.
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