Disconnect-AzureAD

You can use the Connect-AzureAD PowerShell command to connect your PowerShell session to an authenticated account, Same way; if you wish to disconnect the PowerShell session, then in that case, you can use the Disconnect-AzureAD PowerShell command. This Azure PowerShell article will discuss the syntax and usage of the Disconnect-AzureAD command with examples.

Disconnect-AzureAD

This excellent Azure PowerShell command disconnects your current session from your Azure Active Directory tenant.

Syntax

Below is the syntax of the Disconnect-AzureAD PowerShell command.

Disconnect-AzureAD

Let’s discuss an example of how to use the Disconnect-AzureAD PowerShell command to disconnect Azure Active Directory.

Example-1:

You can execute the below PowerShell command to disconnect your current session from your Azure Active Directory tenant.

Disconnect-AzureAD

You can check out the below-expected output

Disconnect-AzureAD

Final Thoughts

In this Azure PowerShell article, we discussed the syntax and usage of the Disconnect-AzureAD PowerShell command with an example of how to use this command. Thanks for reading this article !!!