To run some administrative commands you will require PnP app Client ID.
Here is how to retrieve it:
-
Navigate to Azure Portal: Microsoft Azure
-
Open Microsoft Entra ID
-
On the left hand side click App registrations:

-
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.