Skip to content
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

A parameter cannot be found that matches parameter name 'ClientSecretCredential' for 'Connect-MgGraph' #2809

Closed
spledfx opened this issue Jun 24, 2024 · 1 comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@spledfx
Copy link

spledfx commented Jun 24, 2024

Describe the bug

ERROR: A parameter cannot be found that matches parameter name 'ClientSecretCredential'.

Exception :
Type : System.Management.Automation.ParameterBindingException
Message : A parameter cannot be found that matches parameter name 'ClientSecretCredential'.
ParameterName : ClientSecretCredential
ErrorId : NamedParameterNotFound
Line : 46
Offset : 66
CommandInvocation :
MyCommand : Connect-MgGraph

Expected behavior

Should be logged in using interactions in the background, without a user to sign in.

How to reproduce

with below modules installed -
'Microsoft.Graph.Users' = '1.'
'Microsoft.Graph.Authentication' = '1.
'

Code snippet I am using -
Connect-MgGraph -TenantId 'xyz' -ClientSecretCredential $cred

SDK Version

No response

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
@spledfx spledfx added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Jun 24, 2024
@spledfx spledfx closed this as completed Jun 24, 2024
@spledfx
Copy link
Author

spledfx commented Jun 24, 2024

Updating the Microsoft.Graph.Authentication module to latest version seemed to fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant