pnp / pnpassessment

Microsoft 365 SharePoint Assessment tool enabling various deprecation and adoption scenarios
https://aka.ms/microsoft365assessmenttool
MIT License
28 stars 14 forks source link

Assessment job not started due to error: Max number of parallel assessments reached #60

Closed dirar closed 4 months ago

dirar commented 4 months ago

Hello,

I am getting the below error when trying to run the assessments:

Assessment job not started due to error: Max number of parallel assessments reached

The command I am running:

& '.\microsoft365-assessment (1).exe' start --mode AddInsACS --authmode application --tenant tenant.sharepoint.com --applicationid abceefabceef-abceef-abceef-abceef-abceefabceefabceef --certpath "My|CurrentUser|a1328739879sdsjdh289372983kjsa"

I tried to add --threads 1 or --threads 5 or any number but without any success. We have 1185 sites, but also when running the command for 1 site I get the same result

Any Ideas please?

Thanks

oalfatyan commented 4 months ago

I'm having the same issue :(

jansenbe commented 4 months ago

@dirar / @oalfatyan : what version are you using? What's the OS you're running the assessment from? Can you try the following. Launch the assessment tool without any arguments, on the prompt you see type list and press enter. This shows the running assessments, if there are three already then you can't run more. You can wait for the existing runs to be done or stop them...or simply kill the running microsoft365-assessment.exe processes in case you don't need those runs.

oalfatyan commented 4 months ago

we are running the latest version 1.9.0 on windows 11, it is discovering 1181 sites and it fails immediately, is it due to a threshold by Microsoft? even changing the Thread option does not help

oalfatyan commented 4 months ago

and when tried to run the tool on a windows server 2019 I get this error: Assessment job not started due to error: Microsoft Graph service exception image

jansenbe commented 4 months ago

@oalfatyan : did grant the proper permissions for the AddInsACS run, see https://pnp.github.io/pnpassessment/addinsacs/requirements.html#permission-requirements for more details. Given you're using application permissions you need the following permissions:

oalfatyan commented 4 months ago

The app permission is correct, also when I try to run it as interactive mode and with one site instead of tenant ...I get the same error image image

not sure how to proceed with this!

jansenbe commented 4 months ago

@dirar : can you verify all microsoft365-assessment.exe processes are killed and then run below and share output:

image

oalfatyan commented 4 months ago

image as requested

oalfatyan commented 4 months ago

The error has changed to the below image

jansenbe commented 4 months ago

can you copy the log output gathered in the folder where the exe file is and send it to bjansen@microsoft.com. The logs should tell us more about why you see the graph exception

jansenbe commented 4 months ago

closing this one, root cause was missing Application.Read.All permission and not missing to provide the application id argument on the command line.

image

image

dirar commented 4 months ago

@jansenbe Thank you