A parameter cannot be found that matches parameter name 'ClientSecretCredential' for 'Connect-MgGraph' #2809
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
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
```The text was updated successfully, but these errors were encountered: