OfficeDev / microsoft-teams-apps-requestateam

Power Platform based solution that allows users to request teams and automates team creation. NO LONGER MAINTAINED. Please use 'Provision Assist' - https://github.com/pnp/provision-assist-m365/ instead.
MIT License
236 stars 66 forks source link

PNP error can't create site - Need help with deploy.ps1 script #218

Open Lolipopzs opened 3 years ago

Lolipopzs commented 3 years ago

`### TEAMS REQUESTS SITE CREATION ### Creating Teams Requests SharePoint site... Error occured while creating of the SharePoint site: Cannot bind argument to parameter 'Title' because it is null. Connect-PnPOnline : The remote server returned an error: (401) Unauthorized. At C:\Scripts\Deploy\Teams\Auto-Provisioning\Deployment\Scripts\deploy.ps1:699 char:15

REQUESTS SPO SITE CONFIGURATION

Configuring SharePoint site... Applying provisioning template... WARNING: The source site from which the template was generated had a base template ID value of GROUP#0, while the current target site has a base template ID value of TENANTADMIN#0. This could cause potential issues while applying the t emplate. WARNING: ListInstance Style Library is a Style Library of a site with NoScript enabled and will be skipped Apply-PnPProvisioningTemplate : Access denied. You do not have permission to perform this action or access this resource. At C:\Scripts\Deploy\Teams\Auto-Provisioning\Deployment\Scripts\deploy.ps1:286 char:9

alexc-MSFT commented 3 years ago

@Lolipopzs It appears that it's trying to apply the PnP template to your SPO admin center. Can you check the parameters that you provided please.