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

bug: #5087

Closed
tuckerjoee opened this issue Jan 17, 2025 · 1 comment
Closed

bug: #5087

tuckerjoee opened this issue Jan 17, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tuckerjoee
Copy link

tuckerjoee commented Jan 17, 2025

Describe the bug

I am trying to automate our onboarding process, a part of the process is creating a Microsoft 365 account for the new employee, I am using Powershell. It seems like windmill is failing to recognize a function of my import: importing ‘Microsoft.Graph’ and attempting to use ‘Connect-MgGraph’ to interact with our instance. I have been trying to use ‘Install-Module Microsoft.Graph’ because using the Import-Module command never returns anything, just spins until it timeouts. It returns the error “Connect-MgGraph is not recognized as a name of….” but I have scripted this in a different instance and this worked fine. We are a Mac only company and I was thinking that was a possible problem.

Image

Here is my code, with app info redacted, for reference:

Image

My company is almost all Mac. I am using 'Install-Module' because 'Import-Module' just runs until timeout. The Microsoft.Graph module is supposedly very large.

To reproduce

  1. Create the basic Powershell action
  2. Install-Module Microsoft.Graph
  3. Attempt to run a command from the module, like Connect-MgGraph
  4. Test this Step
  5. See error

Expected behavior

With proper credentials, this code should create a test user named 'John Doe' in a Microsoft365 instance.

Screenshots

No response

Browser information

Firefox 128.0.3 (64-bit)

Application version

CE v1.437.1-20-g3864cfce2

Additional Context

No response

@tuckerjoee tuckerjoee added the bug Something isn't working label Jan 17, 2025
@tuckerjoee
Copy link
Author

Sorry, line 29 should not be commented out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants