I have two versions of PowerShell installed on my Windows 10 desktop - Windows PowerShell (5.1) and PowerShell core (7.1.3).
I've installed the Microsoft.Online.SharePoint.Powershell module (version 16.0.21213.12000) in both environments. However, I'm not able to connect from PowerShell core. I get the error " The term 'connect-sposervice' is not recognized as a name of a cmdlet..."
It will work if I explicitly import the module using the -UseWindowsPowerShell parameter. This displays a number of warnings about unapproved verbs.
I can't find any information on whether the Microsoft.Online.SharePoint.Powershell module is supported in PowerShell core or not. Is this an issue with my environment? Should I stick to using Windows PowerShell for now?