You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Connect-PnPOnline in Azure Functions or in the Cloud Shell a message is shown stating that this is not a supported environment.
Expected behavior
I expect to be able to use Connect-PnPOnline in Azure Functions or in the Cloud Shell
Actual behavior
When running the cmdlet in an Azure Function or the CloudShell I see this message:
Connect-PnPOnline: AADSTS50005: User tried to log in to a device from a platform (Unknown) that's currently not supported through Conditional Accesspolicy. Supported device platforms are: iOS, Android, Mac, and Windows flavors.
Steps to reproduce behavior
Go to the Azure Portal
Open a Cloud Shell
Install PnP Module via Install-Module -Name PnP.PowerShell
Try to connect to a SharePoint Online site
What is the version of the Cmdlet module you are running?
1.2.0
Which operating system/environment are you running PnP PowerShell on?