Retrieve PnP app Client ID

To run some administrative commands you will require PnP app Client ID.
Here is how to retrieve it:

  1. Navigate to Azure Portal: Microsoft Azure

  2. Open Microsoft Entra ID

  3. On the left hand side click App registrations:

  4. Under All applications, find the Client ID for PnP application and copy it:

If you don’t have the standard PnP Management Shell Azure AD / Entra ID application registration, you can create it by executing this script in your PowerShell 7:

Register-PnPAAzureADApp

This automatically creates the required multi-tenant app registration with interactive consent in your Entra ID tenant.