pnp / blog

holds all blogs published on the Microsoft 365 Platform Community blog
https://pnp.github.io/blog
MIT License
76 stars 107 forks source link

PnP PowerShell v2.1.1 #1231

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

PnP PowerShell v2.1.1

PnP PowerShell is a cross-platform PowerShell Module providing over 650 cmdlets that work with Microsoft 365 environments and more specifically SharePoint Online, Microsoft Teams, Microsoft Planner and Power Automate.

https://pnp.github.io/blog/pnp-powershell/pnp-powershell-v2-1-1/

dk1885 commented 1 year ago

So I'm trying to write a single PS script that combines modules AzureAD and PnP.PowerShell, which no longer seems possible as I cannot seem to combine both modules in the same script. PnP.PowerShell no longer works with PS5.1 and AzureAD has issues with PS7.

Thank you for making my job that much harder...

CATgwalker commented 1 year ago

I know I'm 4 months late but it is important to say: Removing support for PowerShell 5.1 is an unfortunate change that will prevent many people from moving to the 2.x release and seeing the benefits of the new cmdlets. I hope this is a change that could not otherwise have been prevented.

While Microsoft is moving towards 7.1/7.2, it is not supported everywhere and there are significant issues with backwards compatibility to a lot of other modules that O365 administrators use.

Additionally, one of the major use cases of PNP.PowerShell through Azure Automation runbooks are still only supported on 5.1. 7/1 & 7.2 runbooks are in preview version and only in the cloud, not on hybrid runbook workers. Since 7.x runbooks are still in preview they are not officially supported so there is no possibility to receive help through a support case for a runbook issue.