Skip to content

[BUG] Unable to connect to PNP with CloudShell #4983

Open
@pmatthews05

Description

@pmatthews05

Reporting an Issue or Missing Feature

When trying to Connect-PnPonline through cloudshell PowerShell I'm getting errors, I have attempted this on 2 different cloudshell environments in different tenants. I have also destroyed the CloudShell Storage account and fileshare and created a brand new one to ensure there was no issue there.

I have attempted to use both -Interactive and -DeviceLogin. These previously worked for me, possible over a month ago.

Expected behavior

From using Connect-PNPOnline I should connect to the tenant.

Actual behavior

Please describe what you see instead. Please provide samples of output or screenshots.

Below is two attempts made.

  1. Connect-PnPOnline -Url "https://<tenant>.sharepoint.com/sites/<site> -ClientId "<clientId> -DeviceLogin -Tenant "<tenant>.onmicrosoft.com
  2. Connect-PnPOnline -Url "https://<tenant>.sharepoint.com/sites/<site> -ClientId "<clientId> -Interactive
Image

The error message for Device Login:

WARNING: Could not execute process. Command line: bash -c "cat /tmp/tmpWq9d4D.tmp | xsel -i --clipboard ".
Output: 

Error: bash: line 1: xsel: command not found
cat: write error: Broken pipe

The error message for Interactive:

Connect-PnPOnline: An error occurred trying to start process 'xdg-open' with working directory '/home/paul'. No such file or directory

Steps to reproduce behavior

Please include complete script or code samples in-line or linked from gists

  • Open a brand new cloudshell environment with Storage account.
  • Install-Module -Name PnP.PowerShell
  • Connect-PnPOnline ...

What is the version of the Cmdlet module you are running?

Version 3.1.0 -PSEdition Core.

Which operating system/environment are you running PnP PowerShell on?

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

Metadata

Metadata

Assignees

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