Open Choggo opened 4 years ago
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Reading through the code, I do see that Set-PnpContext only replaces the current clientcontext and not the connection as a whole.
Is the behavior I described something intended then?
Reporting an Issue or Missing Feature
Set-PnpContext isn't completly switching to a previously saved context
This issue affects other commands such as New-PnPUnifiedGroup
Expected behavior
When running the reproduction commands, I would expect the Graph access token to be printed to the console.
Actual behavior
Steps to reproduce behavior
Reversing the order of creating the connections bypasses the issue, but there's no way of knowing if it'll break something else.
Which version of the PnP-PowerShell Cmdlets are you using?
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing
Get-Module -Name sharepointpnppowershell* -ListAvailable
)3.23.2007.1
How did you install the PnP-PowerShell Cmdlets?