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

Microsoft 365 Assessment Tool Errors attempting to run SharePoint Add/In assessment #43

Closed MJ-Apptitude closed 8 months ago

MJ-Apptitude commented 8 months ago

Microsoft 365 Assessment Tool Errors attempting to run SharePoint Add/In assessment. Errors received are attached. I am using the following syntax and woud like to run this on one site initially not the entire tenant. Screenshot 2024-02-29 152643

start --mode AddInsACS --authmode application --tenant company.sharepoint.com --applicationid xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx --siteslist "https://company.sharepoint.com/sites/allcompany38"

jansenbe commented 8 months ago

You're missing the --authmode parameter, see https://pnp.github.io/pnpassessment/using-the-assessment-tool/assess-start.html#authentication-configuration

MJ-Apptitude commented 8 months ago

Hi thanks for responding but I added the authmode as you can see in the text at the bottom of the screenshot I've tried it with applicationid. I've also tried it with interactive and still receive errors.

jansenbe commented 8 months ago

Oh sorry, missed that one. When using application permissions you also need to specify the certificate to use. See https://pnp.github.io/pnpassessment/using-the-assessment-tool/assess-start.html#specifying-the-certificate-to-use-when-using-application-permissions.

MJ-Apptitude commented 8 months ago

Problem turned out to be that all arguments needed to be on the same line before executing. 👍

jansenbe commented 8 months ago

@MJ-Apptitude , also looking at the screenshot you've not added all parameters, it should be like this (only added the first params, you'll need to add all)

image