Microsoft.Entra 1.2.0 PowerShell Modules have been released

Microsoft.Entra 1.2.0 PowerShell Modules have been released

Hi All,

A few hours ago, Microsoft has released new Microsoft.Entra and Microsoft.Entra.Beta PowerShell Modules.

The Entra PowerShell Module is similar to the Micrsoft.Graph PowerShell Modules. It has a “Master” Module with dependencies.

Same with the Microsoft.Entra.Beta Module. It has a “Master” Module with dependencies.

See the Release Notes

Check installed Versions and what’s available from the Powershell Gallery

Get-InstalledPSResource -Name Microsoft.Entra -Scope CurrentUser
Get-InstalledPSResource -Name Microsoft.Entra.Beta -Scope CurrentUser
Find-PSResource -Name Microsoft.Entra
Find-PSResource -Name Microsoft.Entra.Beta

Uninstall old PowerShell Modules

Uninstall-PSResource -Name Microsoft.Entra -Scope CurrentUser
Uninstall-PSResource -Name Microsoft.Entra.Beta -Scope CurrentUser

Install new PowerShell Modules

Install-PSResource -Name Microsoft.Entra -Scope CurrentUser
Install-PSResource -Name Microsoft.Entra.Beta -Scope CurrentUser
Get-InstalledPSResource -Name Microsoft.Entra -Scope CurrentUser
Get-InstalledPSResource -Name Microsoft.Entra.Beta -Scope CurrentUser

List Microsoft.Entra PowerShell Modules

Get-InstalledPSResource -Name Microsoft.Entra.* -Scope CurrentUser

List some commands of the Modules

Get-Command -Module Microsoft.Entra
Get-Command -Module Microsoft.Entra.Beta.Authentication
Get-Command -Module Microsoft.Entra.Beta.Applications

Connect to Entra

Connect-Entra -Nowelcome

List the Context - similar to Get-MgContext

Get-EntraContext

List a User and the assigned Entra Roles

Get-EntraUser -UserId a.bohren@icewolf.ch
Get-EntraUserRole -UserId a.bohren@icewolf.ch

Disconnect-Entra similar to Disconnect-MgGraph

Disconnect-Entra

Regards
Andres Bohren

EntraID Logo

PowerShell Logo