1

I am having issue running the starter kit 2 available here

Below is the error i am getting

enter image description here

Below are the steps i followed from the article

Install-Module -Name "SharePointPnPPowerShellOnline" -RequiredVersion 3.20.2004.0
 Connect-PnPOnline -Url https://tenant-admin.sharepoint.com/  -PnPO365ManagementShell
Connect-PnPOnline -Url https://tenant.sharepoint.com

Change to the provisioning folder found in this solution's root and execute the following command

 Apply-PnPTenantTemplate -Path .\starterkit.pnp
5
  • Have you tried the suggestions given here and here? Oct 5, 2020 at 15:54
  • Yes I have no luck
    – SandeshR
    Oct 5, 2020 at 18:48
  • Have you or can you try without the .\ in the path?
    – SteveP
    Oct 9, 2020 at 11:18
  • Yes i have tried that as well, and lots other things as well
    – SandeshR
    Oct 10, 2020 at 16:25
  • Do you have MFA on SP activated? If you have, check this link with similar error github.com/pnp/sp-starter-kit/issues/417
    – Marko Tica
    Oct 16, 2020 at 11:13

2 Answers 2

0

Run PowerShell as administrator and use full path in -Path for example: Apply-PnPTenantTemplate -Path C:\temp\starterkit.pnp

1
  • Hi Piotr, i tried it and it is giving the same issue.
    – SandeshR
    Oct 14, 2020 at 15:13
0

You should not connect to the admin site and not use the -PnPO365ManagementShell attribute, as this is not supported (stated in the documentation) and connecting twice will get you 2 open connections where you can hardly tell which is the actively used one.

According to documentation you should only connect using the following command and then run the Apply-PnPTenantTemplate script.

Connect-PnPOnline -Url https://tenant.sharepoint.com

Make sure you close PowerShell and reopen it to get rid of previous sessions and best is always to close sessions properly at the end. (Disconnect-PnPOnline)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.