b m

b m

  • NA
  • 2
  • 2.2k

Get-PnPProvisioningTemplate :Access denied. You do not have permission

Oct 23 2020 3:50 AM

I am getting unauthorized(401) error when trying to executing Get-PnPProvisioningTemplate in Azure funciton app powershell(runtime version ~1), I am passing appid and appsceret as parameters at tenant level and site collection level. I am getting the same errors when executing them in Windows powershell.

Connect-PnPOnline -AppId $appId -AppSecret $appsecret -Url $url
Get-PnPProvisioningTemplate -Out $dropPath

Thanks


Answers (1)