Azure Active Directory PowerShell for Graph
Important
Azure AD and MSOnline PowerShell modules are deprecated as of March 30, 2024. To learn more, read the deprecation update After this date, support for these modules are limited to migration assistance to Microsoft Graph PowerShell SDK and security fixes. The deprecated modules will continue to function through March, 30 2025.
We recommend migrating to Microsoft Graph PowerShell to interact with Microsoft Entra ID (formerly Azure AD). For common migration questions, refer to the Migration FAQ. Note: Versions 1.0.x of MSOnline may experience disruption after June 30, 2024.
Azure Active Directory PowerShell for Graph (Azure AD PowerShell) is a module IT Pros commonly use to manage their Azure Active Directory. The cmdlets in the Azure AD PowerShell module enable you to retrieve data from the directory, create new objects in the directory, update existing objects, remove objects, as well as configure the directory and its features.
For more information about, or for the syntax of, any of the cmdlets, use the Get-Help <cmdlet name>
command, where <cmdlet name>
is the name of the cmdlet that you want to research.
For more detailed information, you can run any of the following commands:
Get-Help <cmdlet name> -Detailed
Get-Help <cmdlet name> -Examples
Get-Help <cmdlet name> -Full
If you are developing new PowerShell scripts with Azure AD cmdlets we advise you to use the newer Azure Active Directory PowerShell for Graph cmdlets.
Refer to the modules below for a full list of cmdlets and their functionality.
Module | Description |
---|---|
AzureAD | Azure Active Directory PowerShell for Graph |
MSOnline | MSOnline PowerShell |
Microsoft Graph PowerShell (Recommended) | Microsoft Graph PowerShell |