1
Answer

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

b m

b m

4y
2.2k
1

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)