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. In this Azure PowerShell article, we will discuss the syntax and usage of the Disconnect-AzureAD command with examples.
Table of Contents
Disconnect-AzureAD
This is an excellent Azure PowerShell command to disconnect 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.
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

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 !!!