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

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

| improve this answer | |
  • Hi Piotr, i tried it and it is giving the same issue. – spStacker Oct 14 at 15:13

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)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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