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

Vanity URL #44

Closed TitaAE closed 7 months ago

TitaAE commented 8 months ago

Trying to assess SharePoint online and I get this error message. Error

I’ve tried adding appsettings.json as stated in manual added my vanity URL, but still same error. Tried to look for vanity switch but there is none.

Can anyone help me with this? I would really appreciate it.

Kind regards,

jansenbe commented 8 months ago

@TitaAE : what's the command line you're using? Can you past the content of the appsettings.json? See https://pnp.github.io/pnpassessment/using-the-assessment-tool/configuration.html#vanity-url-configuration for instructions on how to configure the file for a tenant using vanity URLs. Also do note that you've to specify the sites to assess via parameters, enumerating all vanity URLs is not supported

TitaAE commented 7 months ago

Hi, This is the command, when I go with single site its fine, but when I need to go through all tenant, where I place tenant URL, error report pops up. 2024-03-04 09_21_20-C__te .json file has basic settings as per manual, but it has the same link as command, so file is useless. 2024-03-04 09_31_24-appsetting

jansenbe commented 7 months ago

These settings are incorrect @TitaAE. First question: are you using vanity URL's? These are URLs that do not use sharepoint.com or sharepoint.us as domain? If not, then just delete the appsettings file, if you are then please specify the appsettings.json file as explained here https://pnp.github.io/pnpassessment/using-the-assessment-tool/configuration.html#vanity-url-configuration.

TitaAE commented 7 months ago

Hi @jansenbe, you are correct my tenant is using vanity URL's. I would like to work without appsettings file is possible. I was looking at the guide you provided, so if I am using vanity url (https://contoso.net.com) - this url is used in admincenterurl how do I call that file, didn't notice any switch for that.

jansenbe commented 7 months ago

@TitaAE : you have to use an appsettings file for vanity URLs (see https://pnp.github.io/pnpassessment/using-the-assessment-tool/configuration.html#vanity-url-configuration, important that you also specify the mysitehosturl) and you have to specify the sites to assess, specifying the tenant id is not going to work (like you've noticed). Common pattern other vanity URL customers apply is creating a txt file listing all the site collections to assess and then specify that on the command line, see https://pnp.github.io/pnpassessment/using-the-assessment-tool/assess-start.html#scoping-via---sitesfile

jansenbe commented 7 months ago

@TitaAE : did the above help?

TitaAE commented 7 months ago

Thx for help