Skip to content

Get-EntraContext is very slow when you are not authenticated #890

Open
@alexandair

Description

@alexandair

Open new PowerShell session and run Get-EntraContext. It runs sometimes for more than 60 seconds.
Get-MgContext runs for less than a second.

PS> get-mgcontext
PS> get-entracontext
PS> h

  Id     Duration CommandLine
  --     -------- -----------
   1        0.724 get-mgcontext
   2     1:02.088 get-entracontext

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions