Az.Accounts

2.0.0-preview

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: https://docs.microsoft.com/powershell/azure/authenticate-azureps

Minimum PowerShell version

5.1

This is a prerelease version of Az.Accounts.
There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

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

Install-Module -Name Az.Accounts -RequiredVersion 2.0.0-preview -AllowPrerelease

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Az.Accounts -Version 2.0.0-preview -Prerelease

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy 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

Owners

Copyright

Microsoft Corporation. All rights reserved.

Package Details

Author(s)

  • Microsoft Corporation

Tags

Azure ResourceManager ARM Accounts Authentication Environment Subscription

Cmdlets

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

PSEditions

Core Desktop

Dependencies

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

FileList

Version History

Version Downloads Last updated
5.3.0 57,379,431 9/2/2025
5.2.0 33,406,327 8/5/2025
5.1.1 41,018,601 7/1/2025
5.1.0 31,918,123 6/4/2025
5.0.2 1,656,935 6/3/2025
5.0.1 8,971,019 5/23/2025
5.0.0 4,413,319 5/19/2025
4.2.0 11,769,007 5/6/2025
4.1.0 27,789,037 4/1/2025
4.0.2 61,183,634 1/15/2025
4.0.1 1,736,129 1/14/2025
4.0.0 41,201,438 11/19/2024
3.0.5 12,900,293 11/11/2024
3.0.4 106,899,315 9/3/2024
3.0.3 15,052,548 8/6/2024
3.0.2 11,864,355 7/12/2024
3.0.1 2,063,444 7/9/2024
3.0.0 27,555,770 5/21/2024
2.19.0 11,988,534 4/30/2024
2.18.0-preview 21,838 4/9/2024
2.17.0 12,406,660 4/2/2024
2.16.0 11,477,421 3/5/2024
2.15.1 10,988,021 2/6/2024
2.15.0 10,465,313 1/9/2024
2.14.0-preview 25,639 12/19/2023
2.13.2 22,795,760 11/14/2023
2.13.1 21,399,391 9/26/2023
2.13.0 6,929,195 9/5/2023
2.12.5 10,089,497 8/1/2023
2.12.4 8,319,668 7/4/2023
2.12.3 11,176,991 5/23/2023
2.12.2 8,904,305 4/25/2023
2.12.1 17,902,899 3/10/2023
2.12.0 782,012 3/9/2023
2.11.2 6,931,092 2/7/2023
2.11.1 3,926,179 1/13/2023
2.11.0 733,900 1/10/2023
2.10.4 4,771,822 12/6/2022
2.10.3 6,115,172 11/1/2022
2.10.2 3,010,948 10/12/2022
2.10.1 3,265,652 9/14/2022
2.10.0 1,019,635 9/6/2022
2.9.1 33,742,584 8/2/2022
2.9.0 3,808,222 7/5/2022
2.8.0 5,773,602 5/24/2022
2.7.6 3,402,612 4/26/2022
2.7.5 2,355,199 4/5/2022
2.7.4 3,085,967 3/10/2022
2.7.3 1,171,302 3/1/2022
2.7.2 2,555,907 2/7/2022
2.7.1 3,695,295 1/4/2022
2.7.0 2,581,805 12/7/2021
2.6.2 2,217,068 11/18/2021
2.6.1 1,736,498 11/2/2021
2.6.0 2,381,879 10/22/2021
2.5.4 1,019,273 10/12/2021
2.5.3 3,153,128 9/7/2021
2.5.2 2,505,327 8/3/2021
2.5.1 1,849,988 7/9/2021
2.5.0 225,322 7/6/2021
2.4.0 1,428,827 6/15/2021
2.3.0 1,325,812 5/25/2021
2.2.8 3,176,195 4/13/2021
2.2.7 1,258,225 3/23/2021
2.2.6 1,304,882 3/2/2021
2.2.5 1,601,478 2/9/2021
2.2.4 2,583,469 1/19/2021
2.2.3 2,172,876 12/29/2020
2.2.2 1,928,599 12/8/2020
2.2.1 2,042,420 11/18/2020
2.2.0 259,228 11/17/2020
2.1.2 1,890,811 11/2/2020
2.1.0 521,453 10/27/2020
2.0.1-preview 36,490 4/15/2020
2.0.0-preview (current version) 74,365 5/8/2019
1.9.5 1,047,563 10/13/2020
1.9.4 247,637 9/22/2020
1.9.3 2,706,688 8/25/2020
1.9.2 1,380,363 8/4/2020
1.9.1 1,040,716 7/14/2020
1.9.0 1,084,470 6/23/2020
1.8.1 1,495,911 6/2/2020
1.8.0 1,656,232 5/19/2020
1.7.5 2,659,593 4/16/2020
1.7.4 1,091,358 3/31/2020
1.7.3 1,280,820 3/10/2020
1.7.2 1,008,669 2/18/2020
1.7.1 1,095,789 2/4/2020
1.7.0 974,618 1/7/2020
1.6.7 23,175 1/7/2020
1.6.6 402,027 12/20/2019
1.6.5 164,751 12/17/2019
1.6.4 1,152,096 11/4/2019
1.6.3 381,917 10/9/2019
1.6.2 745,640 8/27/2019
1.6.1 434,785 7/30/2019
1.6.0 399,127 7/2/2019
1.5.3 169,703 6/18/2019
1.5.2 437,869 5/6/2019
1.5.1 98,381 4/23/2019
1.5.0 96,590 4/9/2019
1.4.0 159,158 3/12/2019
1.3.1 51,105 3/2/2019
1.3.0 94,197 2/12/2019
1.2.1 483,076 1/31/2019
1.2.0 29,161 1/25/2019
1.1.0 37,364 1/15/2019
1.0.0 72,993 12/18/2018
Show less