Thursday, July 17, 2025
HomePowershellMicrosoft Entra PowerShell module now usually obtainable

Microsoft Entra PowerShell module now usually obtainable


As we speak, we’re thrilled to announce the final availability (GA) of the Microsoft Entra PowerShell module, a brand new scenario-focused PowerShell module designed to streamline administration and automation for Microsoft Entra. In 2021, we introduced that each one our future PowerShell investments could be within the Microsoft Graph PowerShell SDK. This GA milestone displays a serious step ahead on this journey.

We’re grateful for the substantial suggestions we’ve heard from Microsoft Entra prospects about your PowerShell experiences. We’ll proceed to put money into the Microsoft Entra PowerShell module and increase its protection of assets and situations.

The Microsoft Entra PowerShell module is a command-line instrument that enables directors and builders to handle and automate Microsoft Entra assets programmatically. This contains effectively managing customers, teams, purposes, service principals, insurance policies, and extra. The module builds upon and is a part of the Microsoft Graph PowerShell SDK. It’s totally interoperable with all cmdlets within the Microsoft Graph PowerShell SDK, enabling you to carry out advanced operations with easy, well-documented instructions. The module additionally gives a backward compatibility choice to streamline migration from the retiring AzureAD PowerShell module. Microsoft Entra PowerShell works with Home windows PowerShell 5.1 and PowerShell 7+. For the very best expertise on Home windows, Linux, and macOS, we advocate utilizing PowerShell 7 or later.

  • Give attention to usability: Microsoft Entra PowerShell gives human-readable parameters, deliberate parameter set specification, inline documentation, and core PowerShell fundamentals like pipelining.
  • Backward compatibility with AzureAD PowerShell module: Microsoft Entra PowerShell simplifies migration from the retiring AzureAD PowerShell module.
  • Versatile and granular authorization: Per Microsoft Graph PowerShell SDK, Microsoft Entra PowerShell permits administrative consent for the permissions you need to grant to the appliance. It additionally helps operating Microsoft Entra PowerShell utilizing your personal service principal or user-assigned managed id.
  • Open supply: The Microsoft Entra PowerShell module is open supply, enabling group collaboration to boost PowerShell and share improvements. You possibly can discover Microsoft’s customizations and adapt them to your wants.

Set up: Set up Microsoft Entra PowerShell, which makes use of the “/v1.0” API model to handle Microsoft Graph assets, from the PowerShell Gallery by operating this command:

Set up-Module -Identify Microsoft.Entra -Repository PSGallery -Scope CurrentUser -Power -AllowClobber 

 

Or set up the Beta module, which manages Microsoft Graph assets utilizing the “/beta” API model, by operating this command:

Set up-Module -Identify Microsoft.Entra.Beta -Repository PSGallery -Scope CurrentUser -Power -AllowClobber 

 

Authentication: Use the Join-Entra command to check in to Microsoft Entra ID with delegated entry (interactive) or application-only entry (noninteractive).

Join-Entra -Scopes ‘Consumer.Learn.All’

 

To see extra examples for utilizing your personal registered software, Managed Identification, and different authentication strategies, see the authentication situations documentation.

 

Discover all obtainable instructions: You possibly can record all obtainable instructions within the Microsoft Entra PowerShell module by utilizing the command:

Get-Command -Module Microsoft.Entra*

 

Get Assist: Use the Get-Assist command to view detailed details about particular cmdlets, together with syntax, parameters, descriptions, and examples. For example, to be taught concerning the Get-EntraUser cmdlet, run:

Get-Assist Get-EntraUser –Full

 

Migrating from AzureAD PowerShell module: You possibly can run your current AzureAD PowerShell module scripts with minimal modifications utilizing Microsoft Entra PowerShell by utilizing the Allow-EntraAzureADAlias command. For instance:

Import-Module -Identify Microsoft.Entra.Customers
Join-Entra #Replaces Join-AzureAD for auth
Allow-EntraAzureADAlias #allow aliasing
Get-AzureADUser -Prime 1

We encourage you to strive the new model and share your suggestions on GitHub. Your insights are invaluable as we proceed to enhance and improve the module to higher meet your wants.

Discover our public documentation to learn to set up the Microsoft Entra PowerShell module, the authentication strategies obtainable, which cmdlet to make use of for a selected situation, how-to guides, and extra.

Test the Steadily Requested Questions (FAQs) for solutions.

We need to thank all of the group members who helped us enhance this launch by reporting points on GitHub throughout the public preview! Please preserve them coming!

 

Steve Mutungi, Product Supervisor, Microsoft Entra PowerShell 

 

 

Study extra about Microsoft Entra

Forestall id assaults, guarantee least privilege entry, unify entry controls, and enhance the expertise for customers with complete id and community entry options throughout on-premises and clouds.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments