In a Lync hybrid deployment, when you try to move users from the on-premises server that is running Lync to Skype for Business Online (formerly Lync Online) in Office 365, you receive the following error message in Skype for Business Online PowerShell:
Before you try to migrate an on-premises Lync user to Skype for Business Online in Office 365, your Office 365 Skype for Business Online organization must be enabled for Shared Session Initiation Protocol (SIP) Address Space.
Set-CsTenantFederationConfiguration -SharedSipAddressSpace $true
After you have the Skype for Business Online Connector module installed, open Windows PowerShell, and then run the following commands:
$cred = Get-Credential
$CSSession = New-CsOnlineSession -Credential $cred
Import-PSSession $CSSession -AllowClobber
For more information about how to connect to Skype for Business Online by using Windows PowerShell, go to the following Microsoft TechNet website: