Prerequisites
ScubaGear Version
Invoke-SCuBA -Version
SCuBA Gear v1.8.0
Operating System
Windows 11
PowerShell Version
5.1
M365 Environment and License(s)
GCCH
🐛 Summary
This is likely the same issue as #2157. Script fails on Get-PrivilegedRole. I am running as GA. I get results for AAD minus 7.5, 7.6, 7.7, 7.8, and 7.9, which reports:
This test depends on the following command(s) which did not execute successfully: Get-PrivilegedRole. See terminal output for more details.
Terminal output follows:
WARNING: Error running Get-PrivilegedRole: Failed to fetch policy rules for a PIM group from batch results. Status:
429. Body: {
"error": {
"innerError": {
"date": "/Date(1780443367000)/",
"request-id": "270204a1-f2eb-4294-a25c-397ec9415cd0",
"client-request-id": "ec2527bd-afe9-46e1-b8cd-bb42c6ad9453"
},
"code": "UnknownError",
"message": "Too Many Requests"
}
}
at GetConfigurationsForPimGroups,
m1: line 728
at TryCommand,
Error Acquiring Token:
Unknown Status: Unexpected
Context: Operation did not start in the allotted time.
Tag: 0x1e3d43d2 (error code 0) (internal error code 507331538)
WARNING: Error running Connect-IPPSSession: Unknown Status: Unexpected
Context: Operation did not start in the allotted time.
Steps to reproduce
Invoke-SCuBA -ProductNames * -OPAPath Z:\redacted\ScubaGear-1.8.0 -M365Environment gcchigh -OutPath c:\users\myadminuserid\scubagear\scubagear-1.8.0 -ConfigFilePath z:\redacted\scubagear-1.8.0\omit_policies.yaml
Expected behavior
Expect script to complete successfully. Am I missing a Powershell or Graph module?
Output from Initialize-SCuBA (optional)
Initialize-SCuBA -NoOPA
PSGallery is trusted.
DEBUG: PowerShellGet: 2.2.5 already has latest acceptable version installed.
DEBUG: MicrosoftTeams: 7.7.0 already has latest acceptable version installed.
Updating ExchangeOnlineManagement from 3.9.0 to 3.9.2.
PackageManagement\Install-Package : The following commands are already available on this
system:'Find-Package,Install-Package,Uninstall-Package'. This module 'PackageManagement' may override the existing
commands. If you still want to install this module 'PackageManagement', use -AllowClobber parameter.
At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
- ... $null = PackageManagement\Install-Package @PSBoundParameters
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package],
Exception
- FullyQualifiedErrorId : CommandAlreadyAvailable,Validate-ModuleCommandAlreadyAvailable,Microsoft.PowerShell.Pack
ageManagement.Cmdlets.InstallPackage
Updated ExchangeOnlineManagement to 3.9.0.
DEBUG: Microsoft.Graph.Authentication: 2.25.0 (acceptable) is installed, but 2.32.0 (above maximum) will be loaded by
default.
DEBUG: powershell-yaml: 0.4.12 already has latest acceptable version installed.
Skipping Download for OPA.
ScubaGear setup time elapsed (in seconds): 86
Prerequisites
ScubaGear Version
Invoke-SCuBA -Version
SCuBA Gear v1.8.0
Operating System
Windows 11
PowerShell Version
5.1
M365 Environment and License(s)
GCCH
🐛 Summary
This is likely the same issue as #2157. Script fails on Get-PrivilegedRole. I am running as GA. I get results for AAD minus 7.5, 7.6, 7.7, 7.8, and 7.9, which reports:
This test depends on the following command(s) which did not execute successfully: Get-PrivilegedRole. See terminal output for more details.
Terminal output follows:
WARNING: Error running Get-PrivilegedRole: Failed to fetch policy rules for a PIM group from batch results. Status:
429. Body: {
"error": {
"innerError": {
"date": "/Date(1780443367000)/",
"request-id": "270204a1-f2eb-4294-a25c-397ec9415cd0",
"client-request-id": "ec2527bd-afe9-46e1-b8cd-bb42c6ad9453"
},
"code": "UnknownError",
"message": "Too Many Requests"
}
}
at GetConfigurationsForPimGroups,
m1: line 728
at TryCommand,
Error Acquiring Token:
Unknown Status: Unexpected
Context: Operation did not start in the allotted time.
Tag: 0x1e3d43d2 (error code 0) (internal error code 507331538)
WARNING: Error running Connect-IPPSSession: Unknown Status: Unexpected
Context: Operation did not start in the allotted time.
Steps to reproduce
Invoke-SCuBA -ProductNames * -OPAPath Z:\redacted\ScubaGear-1.8.0 -M365Environment gcchigh -OutPath c:\users\myadminuserid\scubagear\scubagear-1.8.0 -ConfigFilePath z:\redacted\scubagear-1.8.0\omit_policies.yaml
Expected behavior
Expect script to complete successfully. Am I missing a Powershell or Graph module?
Output from Initialize-SCuBA (optional)
Initialize-SCuBA -NoOPA
PSGallery is trusted.
DEBUG: PowerShellGet: 2.2.5 already has latest acceptable version installed.
DEBUG: MicrosoftTeams: 7.7.0 already has latest acceptable version installed.
Updating ExchangeOnlineManagement from 3.9.0 to 3.9.2.
PackageManagement\Install-Package : The following commands are already available on this
system:'Find-Package,Install-Package,Uninstall-Package'. This module 'PackageManagement' may override the existing
commands. If you still want to install this module 'PackageManagement', use -AllowClobber parameter.
At C:\Program Files (x86)\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
Exception
ageManagement.Cmdlets.InstallPackage
Updated ExchangeOnlineManagement to 3.9.0.
DEBUG: Microsoft.Graph.Authentication: 2.25.0 (acceptable) is installed, but 2.32.0 (above maximum) will be loaded by
default.
DEBUG: powershell-yaml: 0.4.12 already has latest acceptable version installed.
Skipping Download for OPA.
ScubaGear setup time elapsed (in seconds): 86