Microsoft Azure PowerShell - Accounts credential management cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core.

For more information on account credential management, please visit the following:

Minimum PowerShell version


This is a prerelease version of Az.Accounts.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Az.Accounts -AllowPrerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Microsoft Corporation


Microsoft Corporation. All rights reserved.



Azure ResourceManager ARM Accounts Authentication Environment Subscription


Disable-AzDataCollection Disable-AzContextAutosave Enable-AzDataCollection Enable-AzContextAutosave Remove-AzEnvironment Get-AzEnvironment Set-AzEnvironment Add-AzEnvironment Get-AzSubscription Connect-AzAccount Get-AzContext Set-AzContext Import-AzContext Save-AzContext Get-AzTenant Send-Feedback Resolve-AzError Select-AzContext Rename-AzContext Remove-AzContext Clear-AzContext Disconnect-AzAccount Get-AzContextAutosaveSetting Set-AzDefault Get-AzDefault Clear-AzDefault Register-AzModule Enable-AzureRmAlias Disable-AzureRmAlias Uninstall-AzureRm


Core Desktop


This module has no dependencies.

Release Notes

* Update to using Microsoft Authentication Library (MSAL)
   - Enable interactive login support for cross-platform by default
   - Device code flow login is now the backup option of interactive login fails, or the user provides the '-UseDeviceAuthentication' switch parameter
   - Enable username/password support for CSP accounts for cross-platform
* Support single-sign on scenario using shared token cache
   - Token cache is now shared with other products, such as Visual Studio 2019 and Azure CLI
   - Allows users to add/remove accounts in one product and have the changes reflected in another product
   - 'Connect-AzAccount' adds an account to the token cache if not already there
   - 'Remove-AzAccount' removes the account from the token cache and deletes all contexts containing the account
   - 'Clear-AzContext' removes all accounts from the token cache and deletes all contexts

Version History

Version Downloads Last updated
2.0.0-preview (current version) 69,738 5/8/2019
1.6.4 1,060,782 11/4/2019
1.6.3 365,725 10/9/2019
1.6.2 713,958 8/27/2019
1.6.1 416,157 7/30/2019
1.6.0 331,293 7/2/2019
1.5.3 152,940 6/18/2019
1.5.2 411,592 5/6/2019
1.5.1 80,847 4/23/2019
1.5.0 79,840 4/9/2019
1.4.0 133,008 3/12/2019
1.3.1 40,367 3/2/2019
1.3.0 74,394 2/12/2019
1.2.1 190,412 1/31/2019
1.2.0 14,659 1/25/2019
1.1.0 19,045 1/15/2019
1.0.0 44,370 12/18/2018