-
Couldn't load subscription status.
- Fork 391
Description
Reporting an Issue or Missing Feature
After updating to PNP 3.1.0, Get-PnPGraphAccessToken stopped working.
Expected behavior
Get-PnPGraphAccessToken should use an updated assembly and work with PNP 3.1.0 and higher.
Actual behavior
Running Get-PnPGraphAccessToken throws errror:
Get-PnPGraphAccessToken: The 'Get-PnPGraphAccessToken' command was found in the module 'PnP.PowerShell', but the module could not be loaded due to the following error: [Could not load file or assembly 'PnP.PowerShell, Version=2.12.0.0, Culture=neutral, PublicKeyToken=null'. Assembly with same name is already loaded]
For more information, run 'Import-Module PnP.PowerShell'.
Steps to reproduce behavior
- Install PNP 3.1.0
- Run Get-PnPGraphAccessToken
What is the version of the Cmdlet module you are running?
ModuleType Version PreRelease Name PSEdition ExportedCommands
Manifest 3.1.0 PnP.PowerShell Core {Add-PnPAdaptiveScopeProperty, Add-PnPEntraIDGroupMember, Add-PnPEntraIDGroupOwner, Add-PnPEntraIDServicePrincipalAppRole…}
Manifest 2.12.0 PnP.PowerShell Core {Add-PnPAdaptiveScopeProperty, Add-PnPEntraIDGroupMember, Add-PnPEntraIDGroupOwner, Add-PnPEntraIDServicePrincipalAppRole…}
Manifest 2.4.46 nightly PnP.PowerShell Desk {Add-PnPAdaptiveScopeProperty, Add-PnPEntraIDGroupMember, Add-PnPEntraIDGroupOwner, Add-PnPEntraIDServicePrincipalAppRole…}
Directory: C:\Users\michlee\OneDrive - Microsoft\Documents\WindowsPowerShell\Modules
ModuleType Version PreRelease Name PSEdition ExportedCommands
Manifest 2.2.3 nightly PnP.PowerShell Desk {Add-PnPAdaptiveScopeProperty, Add-PnPPropertyBagValue, Add-PnPSiteClassification, Copy-PnPFolder…}
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify