-
Notifications
You must be signed in to change notification settings - Fork 260
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
AAD module generates an error at launch #903
Comments
Hi, Same issue for me i tried with powershell 5.1 and 7. Br |
Is that enough for you? Fatal Error involving the Report Creation. |
Yes, that helps. The file should start with the Other question, would you perhaps have any Azure AD conditional access policies with names using Unicode characters or special characters (accents, backslashes, etc)? It's possible some of these are being filtered out and causing the resulting JSON to be malformed. May be able to see it in the actual JSON file, but I understand it often contains sensitive information you wouldn't want to post fully on a public Github issue.
|
Thank you for the additional details. The header of the file is correct, but after some research the issue is likely due to a bug in the latest version of the MS Graph SDK modules used by ScubaGear. To resolve the issue as a workaround and confirm that this is the issue, could you downgrade those libraries? Here are the steps to do so:
After that is done, try re-running ScubaGear and see if it resolves your issue. |
With the Graph module in version 2.12, the script works perfectly :) |
🐛 Summary
The AAD module generates an error at launch. All prerequisites are correct.
To reproduce
Steps to reproduce the behavior:
Invoke-SCuBA -ProductNames aad -Verbose
Any helpful log output or screenshots
PS C:\temp\ScubaGear-1.1.0> Invoke-SCuBA -ProductNames aad -Verbose

COMMENTAIRES : Suppression de la fonction importée « Select-DohServer ».
COMMENTAIRES : Suppression de la fonction importée « Get-ScubaDmarcRecord ».
COMMENTAIRES : Suppression de la fonction importée « Invoke-RobustDnsTxt ».
COMMENTAIRES : Suppression de la fonction importée « Get-ScubaSpfRecord ».
COMMENTAIRES : Suppression de la fonction importée « Get-ScubaDkimRecord ».
COMMENTAIRES : Suppression de la fonction importée « Get-EXOTenantDetail ».
COMMENTAIRES : Suppression de la fonction importée « Export-EXOProvider ».
COMMENTAIRES : Suppression de la fonction importée « Get-PrivilegedUser ».
COMMENTAIRES : Suppression de la fonction importée « Get-PrivilegedRole ».
COMMENTAIRES : Suppression de la fonction importée « Get-AADTenantDetail ».
COMMENTAIRES : Suppression de la fonction importée « Export-AADProvider ».
COMMENTAIRES : Suppression de la fonction importée « Export-DefenderProvider ».
COMMENTAIRES : Suppression de la fonction importée « Get-TeamsTenantDetail ».
COMMENTAIRES : Suppression de la fonction importée « Export-TeamsProvider ».
COMMENTAIRES : Suppression de la fonction importée « Export-SharePointProvider ».
COMMENTAIRES : Suppression de la fonction importée « Invoke-Rego ».
COMMENTAIRES : Suppression de la fonction importée « New-Report ».
COMMENTAIRES : Suppression de la fonction importée « Import-SecureBaseline ».
COMMENTAIRES : Suppression de la fonction importée « Disconnect-SCuBATenant ».
COMMENTAIRES : Suppression de la fonction importée « Connect-Tenant ».
COMMENTAIRES : Chargement du module à partir du chemin
« C:\temp\ScubaGear-1.1.0\PowerShell\ScubaGear\Modules\Providers\ExportAADProvider.psm1 ».
COMMENTAIRES : Exportation de la fonction « Export-AADProvider ».
COMMENTAIRES : Exportation de la fonction « Get-AADTenantDetail ».
COMMENTAIRES : Exportation de la fonction « Get-PrivilegedUser ».
COMMENTAIRES : Exportation de la fonction « Get-PrivilegedRole ».
COMMENTAIRES : Importation de la fonction « Export-AADProvider ».
COMMENTAIRES : Importation de la fonction « Get-AADTenantDetail ».
COMMENTAIRES : Importation de la fonction « Get-PrivilegedRole ».
COMMENTAIRES : Importation de la fonction « Get-PrivilegedUser ».
COMMENTAIRES : Chargement du module à partir du chemin
« C:\temp\ScubaGear-1.1.0\PowerShell\ScubaGear\Modules\Providers\ExportDefenderProvider.psm1 ».
COMMENTAIRES : Exportation de la fonction « Export-DefenderProvider ».
COMMENTAIRES : Importation de la fonction « Export-DefenderProvider ».
COMMENTAIRES : Chargement du module à partir du chemin
« C:\temp\ScubaGear-1.1.0\PowerShell\ScubaGear\Modules\Providers\ExportEXOProvider.psm1 ».
COMMENTAIRES : Exportation de la fonction « Export-EXOProvider ».
COMMENTAIRES : Exportation de la fonction « Get-EXOTenantDetail ».
COMMENTAIRES : Exportation de la fonction « Select-DohServer ».
COMMENTAIRES : Exportation de la fonction « Invoke-RobustDnsTxt ».
COMMENTAIRES : Exportation de la fonction « Get-ScubaSpfRecord ».
COMMENTAIRES : Exportation de la fonction « Get-ScubaDkimRecord ».
COMMENTAIRES : Exportation de la fonction « Get-ScubaDmarcRecord ».
COMMENTAIRES : Importation de la fonction « Export-EXOProvider ».
COMMENTAIRES : Importation de la fonction « Get-EXOTenantDetail ».
COMMENTAIRES : Importation de la fonction « Get-ScubaDkimRecord ».
COMMENTAIRES : Importation de la fonction « Get-ScubaDmarcRecord ».
COMMENTAIRES : Importation de la fonction « Get-ScubaSpfRecord ».
COMMENTAIRES : Importation de la fonction « Invoke-RobustDnsTxt ».
COMMENTAIRES : Importation de la fonction « Select-DohServer ». COMMENTAIRES : Importation de la fonction « Export-PowerPlatformProvider ». COMMENTAIRES : Importation de la fonction « Get-PowerPlatformTenantDetail ». COMMENTAIRES : Chargement du module à partir du chemin « C:\temp\ScubaGear-1.1.0\PowerShell\ScubaGear\Modules\Providers\ExportSharePointProvider.psm1 ». COMMENTAIRES : Exportation de la fonction « Export-SharePointProvider ».
COMMENTAIRES : Importation de la fonction « Export-SharePointProvider ».
COMMENTAIRES : Chargement du module à partir du chemin
« C:\temp\ScubaGear-1.1.0\PowerShell\ScubaGear\Modules\Providers\ExportTeamsProvider.psm1 ».
COMMENTAIRES : Exportation de la fonction « Export-TeamsProvider ».
COMMENTAIRES : Exportation de la fonction « Get-TeamsTenantDetail ».
COMMENTAIRES : Importation de la fonction « Export-TeamsProvider ».
COMMENTAIRES : Importation de la fonction « Get-TeamsTenantDetail ».
COMMENTAIRES : Chargement du module à partir du chemin
« C:\temp\ScubaGear-1.1.0\PowerShell\ScubaGear\Modules\Connection\Connection.psm1 ».
COMMENTAIRES : Importation de la fonction « Connect-Tenant ».
COMMENTAIRES : Importation de la fonction « Disconnect-SCuBATenant ».
COMMENTAIRES : Chargement du module à partir du chemin
« C:\temp\ScubaGear-1.1.0\PowerShell\ScubaGear\Modules\RunRego\RunRego.psm1 ».
COMMENTAIRES : Importation de la fonction « Invoke-Rego ».
COMMENTAIRES : Chargement du module à partir du chemin
« C:\temp\ScubaGear-1.1.0\PowerShell\ScubaGear\Modules\CreateReport\CreateReport.psm1 ».
COMMENTAIRES : Importation de la fonction « Import-SecureBaseline ».
COMMENTAIRES : Importation de la fonction « New-Report ».
COMMENTAIRES : Chargement du module à partir du chemin
« C:\temp\ScubaGear-1.1.0\PowerShell\ScubaGear\Modules\ScubaConfig\ScubaConfig.psm1 ».
COMMENTAIRES : Importation de la fonction « Copy-ScubaBaselineDocument ».
Fatal Error involving the Report Creation.
Ending ScubaGear execution. See the exception message for more details: Objet non valide passé, ':' ou '}'
attendu. (677065): {
"baseline_version": "1",
"module_version": "1.1.0",
"date": "02/10/2024 05:38:58 Paris, Madrid",
"tenant_details": [
{
"AADAdditionalData": {
"AssignedPlans": [
{
"AssignedDateTime": "Date(1707461129000)",
"CapabilityStatus": "Suspended",
"Service": "MicrosoftCommunicationsOnline",
Add any screenshots of the problem here.
The text was updated successfully, but these errors were encountered: