Import-AzContext

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 » Import-AzContext

How to load Azure authentication information from a file using PowerShell cmdlets.

Description:

Executing this command loads Azure authentication information from a file to set the Azure environment and context. The Azure authentication information that is loaded is used by cmdlets that are run in the current session to authenticate requests to Azure Resource Manager.

Syntax:

Import-AzContext [-Path] <String> [-Scope <ContextModificationScope>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
Import-AzContext [-AzureContext] <AzureRmProfile> [-Scope <ContextModificationScope>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]

Example:

Import-AzContext -Path C:\test.json
Account SubscriptionName TenantId Environment
azureuser@managengine.com Subscription1 xxxx-xxxx-xxxx-xxxx AzureCloud

This example shows a context being selected from a json file and passed through to the cmdlet.

About ADAudit Plus

ADAudit Plus is a UBA-driven change auditor 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. For more information on ADAudit Plus, visit https://www.manageengine.com/active-directory-audit/.