Skip to content

authentication issues #1675

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

Open
1 task done
ed-rosario-arpa-h opened this issue Apr 18, 2025 · 3 comments
Open
1 task done

authentication issues #1675

ed-rosario-arpa-h opened this issue Apr 18, 2025 · 3 comments
Labels
bug This issue or pull request addresses broken functionality public-reported This issue is reported by the public users of the tool. troubleshooting Issues related to debugging unique set ups

Comments

@ed-rosario-arpa-h
Copy link

Prerequisites

  • This issue has an informative and human-readable title.

ScubaGear Version

I am unable to authenticate to my Tenant when running scuba. During the initialization process Microsoft.Graph.Authentication 2.26.1 updated to version 2.27.0. When I Invoke-SCuBA the log below shows that Microsoft.Graph.Authentication 2.26 is not found. How to pin the modules versions during the initialization step? How can I force scuba to install and use Microsoft.Graph.Authentication v2.26?

WARNING: Error running Get-MgBetaIdentityConditionalAccessPolicy: Could not load file or assembly 'Microsoft.Graph.Authentication, Version=2.26.1.0, Culture=neutral, PublicKeyToken=REDACTED' or one of its dependencies. The system cannot find the file specified.

Operating System

Windows 11

PowerShell Version

5.1

M365 Environment and License(s)

M365 Environment: gcc
Don't know the lic type

🐛 Summary

At C:\Program Files\WindowsPowerShell\Modules\ScubaGear\1.5.0\Modules\Orchestrator.psm1:1371 char:13

  •         throw $InvokeReportErrorMessage
    
  •         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : OperationStopped: (Fatal Error inv...o file>: line 1:String) [], RuntimeException
  • FullyQualifiedErrorId : Fatal Error involving the Report Creation.

Ending ScubaGear execution. Error: Invalid JSON primitive:

Steps to reproduce

failed scubareport.txt

Expected behavior

My report to be created

Output from Initialize-SCuBA (optional)

No response

@ed-rosario-arpa-h ed-rosario-arpa-h added the bug This issue or pull request addresses broken functionality label Apr 18, 2025
@j-rat
Copy link

j-rat commented Apr 19, 2025

@ed-rosario-arpa-h see the issue I posted about earlier today. It may help you out.

#1674

@ed-rosario-arpa-h
Copy link
Author

I can try this fix, however how do I prevent this from happening in the future? I run my reports automatically pulling scuba from PS gallery. How can force the application to use a specific version of a module?

@schrolla
Copy link
Contributor

@ed-rosario-arpa-h This was a temporary issue due to the dependent modules needing to all be at the same version. Microsoft has since (over the weekend) released the remaining Graph modules. The easier solution now should be to re-run Initialize-SCuBA so that all the Microsoft.Graph.* modules update to 2.27.0 and then re-run ScubaGear.
If that fails, the workaround in #1674 is also an option.
We have some updates that will reduce dependencies on these modules in the future that will be included in an upcoming ScubaGear release that should alleviate some of these issues. However, you can prevent this by manually installing specific versions of dependent modules rather than running Initialize-ScubaGear to "pin" to specific versions. Over time, however, this could also lead to breakage and additional maintenance as dependencies change over time.

@schrolla schrolla self-assigned this Apr 21, 2025
@schrolla schrolla added the troubleshooting Issues related to debugging unique set ups label Apr 23, 2025
@mitchelbaker-cisa mitchelbaker-cisa added the public-reported This issue is reported by the public users of the tool. label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality public-reported This issue is reported by the public users of the tool. troubleshooting Issues related to debugging unique set ups
Projects
None yet
Development

No branches or pull requests

4 participants