Skip to content

Microsoft.Graph 2.27.0 InteractiveBrowserCredential authentication failed #3285

@BohrenAn

Description

@BohrenAn

Describe the bug

I am using PowerShell 5.1 updated to Microsoft.Graph 2.27.0.

I've got an Error at the most basic Command

Connect-MgGraph -Scopes user.read.all -NoWelcome
Get-MgUser -UserId [email protected]
Get-MgUser : InteractiveBrowserCredential authentication failed: The browser based authentication dialog failed to
complete. Reason: The server or proxy was not found.
At line:1 char:1

  • Get-MgUser -UserId [email protected]
  •   + CategoryInfo          : NotSpecified: (:) [Get-MgUser_Get], AuthenticationFailedException
      + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgUser_Get
    
    

Expected behavior

To run those Commands without error

Connect-MgGraph -Scopes user.read.all -NoWelcome
Get-MgUser -UserId [email protected]

How to reproduce

Connect-MgGraph -Scopes user.read.all -NoWelcome
Get-MgUser -UserId [email protected]

SDK Version

2.27.0

Latest version known to work for scenario above?

2.26.1

Known Workarounds

No response

Debug output

Click to expand log ``` Connect-MgGraph -Scopes user.read.all -NoWelcome Get-MgUser -UserId [email protected] -Verbose Get-MgUser : InteractiveBrowserCredential authentication failed: The browser based authentication dialog failed to complete. Reason: The server or proxy was not found. At line:1 char:1 + Get-MgUser -UserId [email protected] -Verbose + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-MgUser_Get], AuthenticationFailedException + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgUser_Get
</details>


### Configuration

- OS: Windows 11
- PowerShell 5.1

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.26100.3624
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.3624
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions