Skip to content

Connect-MgGraph auth failed with -ClientID -TenantID #3515

@dcorrada

Description

@dcorrada

Describe the bug

I am trying to connect through an Azure app I have created. In the latest releases of Microsoft.Graph (both 2.34 and 2.35) the connection fails.

Expected behavior

Connect-MgGraph -ClientId $clientID -TenantId $tenantID should work

How to reproduce

  1. Execute Connect-MgGraph -ClientId $clientID -TenantId $tenantID
  2. Web Account Manager (WAM) ask me which account I would use
  3. A dialog return error with the following details:

Request Id: c3023c1a-0315-4606-82f7-414e75035500
Correlation Id: ae100d85-7ead-4de3-84e4-3c494a685530
Timestamp: 2026-02-02T09:06:35Z
Message: AADSTS50011: The redirect URI 'ms-appx-web://Microsoft.AAD.BrokerPlugin/e5a1e268-16f4-4d3b-9a27-98cba7ee612d' specified in the request does not match the redirect URIs configured for the application 'e5a1e258-17e4-4c3b-9b27-98cba7ee612d'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal.

SDK Version

2.35

Latest version known to work for scenario above?

2.33

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

Labels

status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions