Azure Active Directory PowerShell for Graph


Azure AD Powershell is planned to be deprecated on June 30, 2023. For more details on the deprecation plans, see the deprecation update. You can start trying Microsoft Graph PowerShell to interact with Azure AD as you would in Azure AD PowerShell. In addition, Microsoft Graph PowerShell allows you access to all Microsoft Graph APIs and is available on PowerShell 7. For answers to frequent migration queries, see the migration FAQ.

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