Disconnect-MgGraph
Once you're signed in, you'll remain signed in until you invoke Disconnect-MgGraph. Microsoft Graph PowerShell automatically refreshes the access token for you and sign-in persists across PowerShell sessions because Microsoft Graph PowerShell securely caches the token.
Syntax
__AllParameterSets
Disconnect-MgGraph
Description
Use Disconnect-MgGraph to sign out.
Examples
Using Disconnect-MgGraph
PS C:> Disconnect-MgGraph
Use Disconnect-MgGraph to sign out.