Disconnect-AzAccount

Active Directory Auditing Tool

The Who, Where and When information is very important for an administrator to have complete knowledge of all activities that occur on their Active Directory. This helps them identify any desired / undesired activity happening. ADAudit Plus assists an administrator with this information in the form of reports. In real-time, ensure critical resources in the network like the Domain Controllers are audited, monitored and reported with the entire information on AD objects - Users, Groups, GPO, Computer, OU, DNS, AD Schema and Configuration changes with 200+ detailed event specific GUI reports and email alerts.

Object Access » Disconnect-AzAccount

How to disconnect an Azure account using Azure PowerShell

Cmdlet Description:

The cmdlet when run, performs a disconnection of a connected Azure account and clears all subscription and tenant information and credentials of that account. This also means that the user will have to login again with Connect-AzAccount.

Powershell Syntax:

Disconnect-AzAccount [-ContextName <String>] [-Scope <ContextModificationScope>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]

Example: Using Disconnect-AzAccount to log out of an Azure account associated with a context

Get-AzContext "Task" | Disconnect-AzAccount -Scope CurrentUser

Description: Disconnects the Azure account account associated with the context named "Task" for the current user.

About ADAudit Plus

ADAudit Plus is a real-time, web-based Windows Active Directory change reporting software that audits, tracks, reports and alerts on Windows (Active Directory, workstations logon/logoff, file servers and servers), NetApp filers and EMC servers to help meet the demands of the much-needed security, audit and compliance. With ADAudit Plus, track authorized/unauthorized AD management changes, access of users, GPO, groups, computer, OU. Track every file, folder modifications, access and permissions changes with 200+ detailed event-specific reports and get instant emails alerts. You can also export the results to XLS, HTML, PDF and CSV formats to assist in interpretation and computer forensics. For more information on ADAudit Plus, visit https://www.manageengine.com/active-directory-audit/.