MSIdentityTools icon indicating copy to clipboard operation
MSIdentityTools copied to clipboard

"No Azure sign-ins found" when running any command

Open Drakeii opened this issue 1 year ago • 1 comments

Describe the bug

Running any command of this module returns the error:

Invoke-MgGraphRequest: The pipeline has been stopped.                                                                   
Invoke-MgGraphRequest: Could not load type 'Microsoft.Graph.Authentication.AzureIdentityAccessTokenProvider' from assembly 'Microsoft.Graph.Core, Version=1.25.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
PropertyNotFoundException: The property 'value' cannot be found on this object. Verify that the property exists.        
No Azure sign-ins found.

To Reproduce

Trying to follow the instructions on: https://azuread.github.io/MSIdentityTools/commands/Export-MsIdAzureMfaReport/ TLS1.2 enabled, the module has been downloaded, and the Graph connection completed (together with the MS Graph access request approval).

  1. Run the command Export-MsIdAzureMfaReport ~/Downloads/report.xlsx
  2. Get the error above

Expected behavior

  1. Run the command
  2. Get the output of the command

Screenshots

image

Environment (please complete the following information)

The command above cannot be executed. On Windows using PowerShell Core 7.4.4 -> Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure' On MacOS using PowerShell Core 7.4.2 and Windows using PowerShell Desktop 5.1.22621.3958 it outputs a very long list of errors

The issue described in this report was tested on: Windows 11 23H2, PowerShell Core 7.4.4, MS Graph 2.22.0 MacOS 14.5, PowerShell Core 7.4.2, MS Graph 2.3.0

Additional context

Drakeii avatar Aug 19 '24 10:08 Drakeii

This looks like a config in your Windows environment and on macOS you have an older version of Microsoft Graph

Can you try completely uninstalling Microsoft Graph on the mac, restarting the shell, verify Graph is not installed and do a fresh install and try again?

merill avatar Aug 21 '24 01:08 merill