Open
Description
Reporting an Issue or Missing Feature
After successfully running Connect-PnPOnline
, when I run
Grant-PnpAzureADAppSitePermission -AppId <app id> -Site <site> -Permissions Read -DisplayName "My Azure AD App" -Verbose
I get the following output after a very long time
VERBOSE: Using Microsoft Graph to lookup the site Id of the passed in site using -Site
VERBOSE: Acquiring oAuth token for permission scope Sites.FullControl.All
Grant-PnPAzureADAppSitePermission: Verification code expired before contacting the server
I've granted the following roles to the app

Can someone please help what I'm doing wrong?
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable
)
I'm using 2.12.0
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify