-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect-MgGraph Entry point was not found. #3044
Comments
Hi @alessandroere thank you for logging this issue. Could you please share the outcome of the below commands after running
|
Hi @timayabi2020 , i'm sorry for my delay. Here the command output PSMessageDetails : FullName Location Azure.Core, Version=1.39.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8 C:\Program Files\PowerShell\Modules\Microsoft.Graph.Authent… PS: Note that i replaced all real local user name with admin123 Thank you |
Describe the bug
Hi, running
Connect-MgGraph -ClientID $microsoftGraph.appID -TenantId $microsoftGraph.tenantID -Certificate $microsoftGraph.certificate
i get the error reported on title.
Here the debug output about Connect-MgGraph command:
DEBUG: ClientCertificateCredential.GetToken invoked. Scopes: [ https://graph.microsoft.com/.default ] ParentRequestId:
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET 8.0.10 Microsoft Windows 10.0.14393 [2024-11-29 15:50:32Z - bbec4bd7-a90f-4ef6-b288-5e9df0d7daeb] MSAL MSAL.CoreCLR with assembly version '4.56.0.0'. CorrelationId(bbec4bd7-a90
f-4ef6-b288-5e9df0d7daeb)
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET 8.0.10 Microsoft Windows 10.0.14393 [2024-11-29 15:50:32Z - bbec4bd7-a90f-4ef6-b288-5e9df0d7daeb] === AcquireTokenForClientParameters ===
SendX5C: False
ForceRefresh: False
DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET 8.0.10 Microsoft Windows 10.0.14393 [2024-11-29 15:50:32Z - bbec4bd7-a90f-4ef6-b288-5e9df0d7daeb]
=== Request Data ===
Authority Provided? - True
Scopes - https://graph.microsoft.com/.default
Extra Query Params Keys (space separated) -
ApiId - AcquireTokenForClient
IsConfidentialClient - True
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - bbec4bd7-a90f-4ef6-b288-5e9df0d7daeb
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
Same error with powershell 7 and 5.1
Expected behavior
Running
Connect-MgGraph -ClientID $microsoftGraph.appID -TenantId $microsoftGraph.tenantID -Certificate $microsoftGraph.certificate
than get the welcome message
How to reproduce
Install Microsoft Graph Authentication module version 2.25.0
Execute command
Connect-MgGraph -ClientID $microsoftGraph.appID -TenantId $microsoftGraph.tenantID -Certificate $microsoftGraph.certificate
SDK Version
2.25.0
Latest version known to work for scenario above?
2.24.0
Known Workarounds
No response
Debug output
Click to expand log
``` DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET 8.0.10 Microsoft Windows 10.0.14393 [2024-11-29 15:50:32Z - bbec4bd7-a90f-4ef6-b288-5e9df0d7daeb] === Token Acquisition (ClientCredentialRequest) started: Scopes: https://graph.microsoft.com/.default Authority Host: login.microsoftonline.com DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET 8.0.10 Microsoft Windows 10.0.14393 [2024-11-29 15:50:32Z - bbec4bd7-a90f-4ef6-b288-5e9df0d7daeb] [Instance Discovery] Instance discovery is enabled and will be performed DEBUG: False MSAL 4.56.0.0 MSAL.CoreCLR .NET 8.0.10 Microsoft Windows 10.0.14393 [2024-11-29 15:50:32Z - bbec4bd7-a90f-4ef6-b288-5e9df0d7daeb] [Region discovery] Not using a regional authority. DEBUG: Request [efad1ee5-0579-47cc-977d-2d647be875d7] POST https://login.microsoftonline.com/5f4c80c0-58ee-4e80-8990-b80e85ad9e5b/oauth2/v2.0/token x-client-SKU:REDACTED x-client-Ver:REDACTED x-client-CPU:REDACTED x-client-OS:REDACTED x-client-current-telemetry:REDACTED x-client-last-telemetry:REDACTED x-ms-PKeyAuth:REDACTED x-ms-lib-capability:REDACTED client-request-id:REDACTED return-client-request-id:REDACTED x-app-name:REDACTED x-app-ver:REDACTED Content-Type:application/x-www-form-urlencoded x-ms-client-request-id:efad1ee5-0579-47cc-977d-2d647be875d7 x-ms-return-client-request-id:true User-Agent:azsdk-net-Identity/1.10.3 (.NET 8.0.10; Microsoft Windows 10.0.14393) client assembly: Azure.IdentityThe text was updated successfully, but these errors were encountered: