How to save Az contexts using Azure PowerShell
Written by Titus Manohar, IT security team, ManageEngine Updated on September 2025
Description:
Save-AzContext cmdlet saves the current authentication data for use in other PowerShell sessions.
Syntax:
Example:
Save the Azure context that is passed through to the cmdlet to snowman.JSON file.
About ADAudit Plus
ADAudit Plus is a User Behavior Analytics (UBA)-driven change auditing tool that helps keep your Active Directory, Azure AD, Windows file servers, NetApp filers, EMC file systems, Synology file systems, Windows member servers, and workstations secure and compliant. With ADAudit Plus, track authorized and unauthorized AD management, GPO, group, computer, and OU changes, user accesses, every file, folder modifications, and more with 200+ detailed event-specific reports and get instant emails alerts. You can also export the reports in 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/.
Explore Active Directory auditing and reporting with ADAudit Plus.
- Related Products
- ADManager Plus Active Directory Management & Reporting
- ADAudit Plus Real-time Active Directory Auditing and UBA
- EventLog Analyzer Real-time Log Analysis & Reporting
- ADSelfService Plus Self-Service Password Management
- AD360 Integrated Identity & Access Management
- Log360 (On-Premise | Cloud) Comprehensive SIEM and UEBA
- AD Free Tools Active Directory FREE Tools
