I'm encountering an error message that says 'Connect-PnPOnline: Specified method is not supported' when I try to connect to my SharePoint tenant. I've already registered the app as directed on the PnP PowerShell documentation page. Here's the command I'm using: Connect-PnPOnline [yourtenant].sharepoint.com -Interactive. There's also a warning indicating that a newer version of PnP PowerShell is available and to update it. Also, it notes that as of September 9th, 2024, I won't be able to connect with -Interactive any longer. Any advice on how to fix this?
5 Answers
Don't forget the -clientid parameter! It’s crucial for creating the PnP session correctly.
You need to register your app in Entra ID and pass the client ID when creating your PnP session. For a detailed guide, check out this resource: [Register an Entra ID Application to Use with PnP PowerShell](https://o365reports.com/2024/09/11/register-an-entra-id-application-to-use-with-pnp-powershell/).
Exactly! It sounds like the error indicates it's still trying to use the old multi-tenant enterprise app from the previous PnP module, which has been retired. You need to set up an enterprise app in your tenant now.
You should add a -clientid parameter with the client ID of the app you registered for your tenant. This is essential for the connection to work properly.
Are you sure you're using the latest version? Also, make sure you’re connecting interactively. It might help if you share your code snippet for better advice.
I had a similar issue and ended up switching my scripts to use -OSLogin instead of -Interactive. You definitely need to include the app ID, just like other users mentioned.
Thanks so much for the tip!