Open arnieraju opened 2 weeks ago
It appears this issue applies to the -Interactive auth method - I have been able to workaround this using a certificate for for authentication.
I get this same issue when running a Invoke-PnPSiteTemplate command. The error pops up when the cmdlet says "Applying template to https://
Suddenly getting consistent 401 Unauthorised errors from PnP.Framework when applying a template to a new site. Template has worked fine in the last couple of weeks. This issue just started today.
Reproduced in PowerShell 7.4.5 and 7.4.6 with PnP 2.12.0 on Windows and Mac, and on 2 different development tenancies using these steps:
Connect-PnPOnline as user with SPO Admin Role using -interactive. This connects successfully without any issues.
Set-PnPTraceLog to Debug Invoke-PnPTenantTemplate PowerShell Progress bar indicates "Applying template to tenant [Sequences]" New PnP Auth popup appears with this message:
Debug level trace output is below.
/