Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-PnPSiteTemplate : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) #378

Open
pauld-apexdigital opened this issue Nov 16, 2022 · 1 comment
Labels
bug Something isn't working 🔍 needs triage Issued needs triaging

Comments

@pauld-apexdigital
Copy link

Description

Getting this error, re-installed PNP mod, to latest version same error.

Invoke-PnPSiteTemplate : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
At C:\scripts\Request a Team\microsoft-teams-apps-requestateam-1.1.0\Deployment\Scripts\deploy.ps1:367 char:9

  •     Invoke-PnPSiteTemplate -Path (Join-Path $packageRootPath $tem ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : WriteError: (:) [Invoke-PnPSiteTemplate], ServerUnauthorizedAccessException
    • FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.InvokeSiteTemplate

Steps to reproduce

1.Logged in as Admin, run script as instructed
2.
3.

Expected results

Template Applied

Actual Results

Invoke-PnPSiteTemplate : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
At C:\scripts\Request a Team\microsoft-teams-apps-requestateam-1.1.0\Deployment\Scripts\deploy.ps1:367 char:9

  •     Invoke-PnPSiteTemplate -Path (Join-Path $packageRootPath $tem ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : WriteError: (:) [Invoke-PnPSiteTemplate], ServerUnauthorizedAccessException
    • FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Site.InvokeSiteTemplate

Solution component

Deployment Script

Operating system (environment)

Windows

Additional Info

No response

@pauld-apexdigital pauld-apexdigital added bug Something isn't working 🔍 needs triage Issued needs triaging labels Nov 16, 2022
@yazengma
Copy link

yazengma commented Oct 9, 2023

Hitting this bug, any comments with regards to this.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🔍 needs triage Issued needs triaging
Projects
None yet
Development

No branches or pull requests

2 participants