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

Import Graph module fails with Could not load file or assembly 'Azure.Core, Version=1.39.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified #2880

Closed
kpinel opened this issue Aug 1, 2024 · 4 comments
Assignees

Comments

@kpinel
Copy link

kpinel commented Aug 1, 2024

Describe the bug

Log into Graph in Azure Runbook

Expected behavior

Log into Graph

How to reproduce

Import-Module Microsoft.Graph.Authentication
Connect-MgGraph -Identity

SDK Version

2.21.0

Latest version known to work for scenario above?

2.20.0

Known Workarounds

Roll back modules to 2.20.0

Debug output

Click to expand log ```
</details>


### Configuration

Azure runbook using both PowerShell 7 and 5

### Other information

I have other environments running 2.20.0 that are working as expected.
Error output
Error: Import-Module : Could not load file or assembly 'Azure.Core, Version=1.39.0.0, Culture=neutral, 
PublicKeyToken=92742159e12e44c8' or one of its dependencies. The system cannot find the file specified.
At line:17 char:1
+ Import-Module Microsoft.Graph.Authentication -Debug
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Import-Module], FileNotFoundException
    + FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand
 

Error: Connect-MgGraph : The 'Connect-MgGraph' command was found in the module 'Microsoft.Graph.Authentication', but the 
module could not be loaded. For more information, run 'Import-Module Microsoft.Graph.Authentication'.
At line:18 char:1
+ Connect-MgGraph -Identity -NoWelcome
+ ~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Connect-MgGraph:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
@kpinel kpinel added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Aug 1, 2024
@timayabi2020 timayabi2020 self-assigned this Aug 6, 2024
@timayabi2020 timayabi2020 added Status: Needs Investigation and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Aug 7, 2024
@timayabi2020
Copy link
Contributor

@kpinel I wasn't able to reproduce your issue with 2.21.0. Could you try updating to the latest version and let us know if you are still experiencing the same issue.

Image

@timayabi2020 timayabi2020 added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed Status: Needs Investigation labels Aug 13, 2024
@Ndiritu Ndiritu removed their assignment Aug 14, 2024
@jlrouzies-mantu
Copy link

Same issue here with version 2.22.0

image

image

@syne0
Copy link

syne0 commented Aug 16, 2024

Seems to be the same issue referenced here #2850 as both reference the azure.core.dll.

This is happening when I try to run a module that is dependent on EXO and Graph. Both EXO and Graph are on the most up to date versions on my end.

@kpinel
Copy link
Author

kpinel commented Aug 19, 2024

I believe it's related to the Exchange 3.5.1 module and have had to roll back my Exchange module to 3.5.0 and Graph is working again.
Slowly bringing my environments up to 2.22.0 but that hasn't resolved the issue. I'll take this across to the Exchange team

@kpinel kpinel closed this as completed Aug 19, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants