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

Problem when running Microsoft Assessment Tool for SharePoint Add-Ins and Azure ACS deprecation #51

Closed cgjeb closed 6 months ago

cgjeb commented 6 months ago

Hi,

I've registered an azure app to use for running the process but I'm getting the error below. "Assessment job not started due to error:"

error_11

I made sure all relevant permissions are granted in azure following that guide. https://pnp.github.io/pnpassessment/using-the-assessment-tool/setupauth.html

Is there anything I'm missing?

Thank you.

jansenbe commented 6 months ago

@cgjeb : for the AddInsACS module the minimal permission requirements are documented here: https://pnp.github.io/pnpassessment/addinsacs/requirements.html#permission-requirements. Please check if you've granted all of them.

If that's the case then please retry and provide me a copy of the generated log files at bjansen@microsoft.com

cgjeb commented 6 months ago

Hi @jansenbe

I've cross-checked the permissions, and everything seems to be in place.

image

Oddly, when running, the tool does not show any logs in the folder! Could the logs be saved somewhere else?

image

image

That is the sample line I'm running in the tool(I've removed our org details). PS C:\Temp\MicrosoftAssessmentTool> .\microsoft365-assessment.exe start --mode AddInsACS --authmode application --tenant xxx.sharepoint.com --applicationid 56789xxxxxxxx --certpath "My|CurrentUser|abc"

The certificate is available in certmgr

image

I don't know where I'm going wrong; previously, I ran the workflow assessment tool without any problems. If you could help me capture the logs, I will then email them to you, if you don't mind.

Thank you.

jansenbe commented 6 months ago

@cgjeb : do you see log files in the folder hosting the .exe? Also, before retrying can you cross check that all microsoft365-assessment.exe processes are killed? If that doesn't help, then it would be great if you could pull down version 1.7 and see if that shows the same issue (ensure you've killed all microsoft365-assessment.exe processes before trying that)? Version 1.8 is the first one based upon .NET 8.0, so wondering if somehow there's an issue with that one.

cgjeb commented 6 months ago

@jansenbe

Thank you for the tips.

I killed all microsoft365-assessment.exe processes, then used version 1.7 and the tool is running.

image

jansenbe commented 6 months ago

@cgjeb : would it be possible to, once your run finishes, to try again with version 1.8 (first kill all assessment processes) and see if that one hangs again?

cgjeb commented 6 months ago

Hi @jansenbe

I've run the tool using ver. 1.8 and it is working fine. It looks like any running processes for "microsoft365-assessment.exe" needed to be killed using the Windows Task Manager, before running a new instance. It would be nice to add it to your support articles.

image

Thank you so much for all your help.

jansenbe commented 6 months ago

Thx, I'll update that in the docs