Open utterances-bot opened 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...
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.
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/