Skip to content

Invoke-PnPSiteTemplate - "Access is Denied" error #4014

Answered by BaronSparky
davida1992 asked this question in Q&A
Discussion options

You must be logged in to vote

I have seen this sort of thing before on sites with NoScript enabled. You could try disabling that first then reapply the template.

Disable NoScript : Set-PnPTenantSite -Url '<New site url>' -DenyAddAndCustomizePages:$false

Debug info might show the issue also: Set-PnPTraceLog -On -Level Debug

Then try invoking your template.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by davida1992
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants