Managing SharePoint Online from PowerShell Core
As the SharePoint Online API needs to be installed on the scripting machine, running it outside of Windows is not as straightforward as with Exchange. The libraries of the module are compiled for the .NET Framework, and PowerShell Core uses .NET Framework Core, so we have an incompatibility problem. Once .NET Framework Core matures, the Office 365 API should be offered compiled for this new platform.
However, we can still use the SharePoint Online API from PowerShell Core through remoting. For the sake of an example, we will implement a client/server approach, similar to the way Exchange works. We will connect from a Linux machine running PowerShell Core to a server running PowerShell and with the SharePoint Online API also installed.
The example would be the same as the previous one, if not for the problem of passing credentials across the sessions. To open a connection with SharePoint Online, we need to pass credentials to the Connect-SPOService...