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

Unhandled exception error #54

Closed Chris-1973 closed 6 months ago

Chris-1973 commented 6 months ago

I'm getting an Unhandled exception: when running the following command microsoft365-assessment.exe start --mode workflow --authmode application --tenant tenantname.onmicrosoft.com --applicationid e17495d9-xxxx-xxxx-xxxxx-9c9e10af2314 --certpath "My|CurrentUser|05f1153e551e3ae9b2adxxxxxxxx93130f3e81af"

I followed the steps in the authentication page setting up an app with the correct API permissions and created a self cert that I added to the apps certificates as well as adding to my local user https://pnp.github.io/pnpassessment/using-the-assessment-tool/setupauth.html

image

I have tried with both v1.9 & 1.8 of the tool

jansenbe commented 6 months ago

@Chris-1973 : I think you're using the --tenant parameter wrong, it should be tenantname.sharepoint.com. See https://pnp.github.io/pnpassessment/workflow/assess.html#start-assessment for the details.

Chris-1973 commented 6 months ago

Hi @jansenbe

Yes that was the problem, working as expected now.

Thanks for the help