First execution of Entra command is extremely slow
It doesn't matter which Entra command I run after Connect-MgGraph, its execution is extremely slow. 45-50 seconds. When I run it for the second time, it runs fast as expected.
The question here if we can see the same behavior for the regular MS Graph Commands, then the issue needs to be fixed by the SDK team.
Compare these two executions:
@rtintor: See above data point from @alexandair.
Hi, @alexandair,
We are pleased to announce the successful implementation of modularization in Entra PowerShell. We sincerely appreciate the time you took to help us investigate, troubleshoot, and contribute. Your support means the world to us.
The improvements are available from version 0.22.0 onwards. We have also finalized the update to our Entra PowerShell public Learn documentation with these changes.
I will proceed to close this issue. If any bugs arise, we will re-open it. Tagging you for awareness.
Related issue: https://github.com/microsoftgraph/entra-powershell/issues/890
Execution of Entra commands is much faster now.
Is there a reason why Microsoft.Entra.Users has 3 direct dependencies (Microsoft.Graph.Users, Microsoft.Graph.Users.Actions, and Microsoft.Graph.Users.Functions)?
That makes first execution of, for example, Get-EntraUser (15.5 seconds) significantly slower than Get-MgUser (3.5 seconds).