Azure/Entra App Registrataion Via PowerShell
This process is necessary because interactive login for PnP.PowerShell was deprecated in September 2024.
:::warning This process requires PowerShell 7.4.0 or later and does not work with PowerShell 5 :::
- Make sure the PnP.PowerShell module is installed on your system
Install-Module PnP.PowerShell -Scope CurrentUser
- Register a new Entra ID Enterprise App for use with Interactive Login by running the following command:
Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "PnP.PowerShell" -Tenant yourtenant.onmicrosoft.com
- Authenticate using your global admin credentials. This will:
- Register a new Enterprise App in Entra ID
- Assign the default delegated permissions
- Prompt you to grant admin consent
- After the Enterprise App has been registered successfully, you can connect to your tenant using the following command:
Connect-PnPOnline -Tenant yourtenant.onmicrosoft.com -ClientId <AppClientId> -Interactive