Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PS: import-module microsoft.graph takes FOREVER #2808

Closed
GeldHades27355 opened this issue Jun 21, 2024 · 5 comments
Closed

PS: import-module microsoft.graph takes FOREVER #2808

GeldHades27355 opened this issue Jun 21, 2024 · 5 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned

Comments

@GeldHades27355
Copy link

Recently, my devices need between 10-20 minutes to import microsoft.graph. While they aren't supercomputers, they're no slouches either. One of them is a Surface Pro 9 SQ3 (Arm64) and the other an Intel Core i5 11th gen. I can literally prepare a meal while the import runs. This applies to both PS5 and PS7.

Any chance to speed this up? Having to wait that long each time I use the modules is REALLY a hindrance.
(multi-threaded import, anyone? 😉)

@GeldHades27355 GeldHades27355 added the status:waiting-for-triage An issue that is yet to be reviewed or assigned label Jun 21, 2024
@SeniorConsulting
Copy link

I have a couple of questions:

  1. Do you have verbose logging turned on?
  2. Are you attempting to import every single module? You might find it quicker to import specific ones as you need them - for example, Microsoft.Graph.Authentication, and Microsoft.Graph.Users.

@GeldHades27355
Copy link
Author

  1. no, all default
  2. yeah, I am. I'm not an expert, just an admin with some powershell needs. 😁 So I never know which modules I'll need beforehand.

This is only an issue when I use microsoft.graph interactively.

In our code, our devs indeed only import sub-modules as needed, so it's not an issue there.

@alexandair
Copy link
Contributor

@GeldHades27355
When you work interactively, you don't need to explicitly import any of the Microsoft.Graph modules. Just run the commands you want and needed modules will be imported behind the scenes.

@GeldHades27355
Copy link
Author

@GeldHades27355 When you work interactively, you don't need to explicitly import any of the Microsoft.Graph modules. Just run the commands you want and needed modules will be imported behind the scenes.

Well duh... whaddaya know? You're right of course. I guess I just outed myself as the proverbial NOOB. 🤪🤣

Issue is me, not the module - so issue closed. 😁

@alexandair
Copy link
Contributor

@GeldHades27355
There is nothing wrong with being NOOB.
Everyone needs to start somewhere.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned
Projects
None yet
Development

No branches or pull requests

3 participants