CmdID

CmdID / PowerShell / Cmdlets / Connect

Connect-MgGraph

Microsoft Graph PowerShell supports two types of authentication: delegated and app-only access. Microsoft Graph PowerShell reference

From the Microsoft Graph PowerShell reference 18 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

18 in the Microsoft Graph PowerShell reference
Show its 18 parameters
-AccessTokenSpecifies a bearer token for Microsoft Graph service.
-BreakWait for .NET debugger to attach
-CertificateAn X.509 certificate supplied during invocation.
-CertificateSubjectName, -CertificateSubject, -CertificateNameThe subject distinguished name of a certificate.
-CertificateThumbprintThe thumbprint of your certificate.
-ClientId, -AppId, -ApplicationIdThe client id of your application.
-ClientSecretCredential, -SecretCredential, -CredentialThe PSCredential object provides the application ID and client secret for service principal credentials.
-ClientTimeoutSets the HTTP client timeout in seconds.
-ContextScopeDetermines the scope of authentication context.
-Environment, -EnvironmentName, -NationalCloudThe name of the national cloud environment to connect to.
-EnvironmentVariableAllows for authentication using environment variables configured on the host machine.
-Identity, -ManagedIdentity, -ManagedServiceIdentity, -MSILogin using a Managed Identity.
-LoginHintThe login hint (typically a username or email) used to pre-populate the account field during interactive browser authentication.
-NoWelcomeHides the welcome message.
-ScopesAn array of delegated permissions to consent to.
-SendCertificateChainInclude x5c header in client claims when acquiring a token to enable subject name / issuer based authentication using given certificate.
-TenantId, -Audience, -TenantThe id of the tenant to connect to.
-UseDeviceCode, -UseDeviceAuthentication, -DeviceCode, -DeviceAuth, -DeviceUse device code authentication instead of a browser control.