Disconnect-Entra
Disconnects the current session from a Microsoft Entra ID tenant.
Syntax
Disconnect-Entra
[]
Description
The Disconnect-Entra cmdlet disconnects the current session from a Microsoft Entra ID tenant.
Examples
Example 1: Disconnect your session from a tenant
Disconnect-Entra
ClientId : 00001111-aaaa-2222-bbbb-3333cccc4444
TenantId : bbbbcccc-1111-dddd-2222-eeee3333ffff
Scopes : {Agreement.ReadWrite.All, CustomSecAttributeDefinition.ReadWrite.All, TeamMember.Read.All...}
AuthType : AppOnly
TokenCredentialType : ClientCertificate
CertificateThumbprint : AA11BB22CC33DD44EE55FF66AA77BB88CC99DD00
CertificateSubjectName :
Account :
AppName : MG_graph_auth
ContextScope : Process
Certificate :
PSHostVersion : 5.1.22621.2506
ManagedIdentityId :
ClientSecret :
Environment : Global
This command disconnects your session from a tenant.