Skip to content

[BUG] Connect-PnPOnline - User tried to log in to a device from a platform (Unknown) that's not supported #234

@arjenbloemsma

Description

@arjenbloemsma

Reporting an Issue or Missing Feature

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.

Screenshot 2021-02-08 at 17 38 56

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?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions