Microsoft.Graph.Entra PowerShell Module in Preview
Hi All,
Recently there has been released the Microsoft.Graph.Entra PowerShell Module in Preview
Introducing the Microsoft Entra PowerShell module
I am using the new PSResourceGet here instead of the PowerShellGet commands.
Check the Version from the PowerShell Gallery and install the Module
Find-PSResource Microsoft.Graph.Entra -Prerelease
Install-PSResource Microsoft.Graph.Entra -Prerelease -Scope CurrentUser
Get-InstalledPSResource Microsoft.Graph.Entra -Scope CurrentUser
List the Commands of the Module
Get-Command -Module Microsoft.Graph.Entra
It’s not yet Part of the Microsoft.Graph.Beta Module
(Find-PSResource Microsoft.Graph.Beta).Dependencies
There seems to be an issue with Get-EntraUser and the Permissions. Found a GitHub Issue
I am not able to get the User with Get-EntraUser but i am able to get the User with Get-MgUser
Connect-Entra -TenantId icewolfch.onmicrosoft.com Scopes 'User.Read.All' -NoWelcome
Get-EntraUser -ObjectId 6db8cdd5-8e93-462d-9907-994406c07f60
Get-MgUser -UserId 6db8cdd5-8e93-462d-9907-994406c07f60
Disconnect-Entra
Let’s try our luck with Get-EntraGroup
Get-EntraGroup
You can enable the Aliases from the depreciated AzureAD PowerShell Module
Enable-EntraAzureADAlias
Get-AzureADGroup -All
As you can see, the AzureAD Module is not loaded
Get-Module
Regards
Andres Bohren