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.
Table of Contents
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-AzureADLet’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-AzureADYou 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 !!!

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
