If you wish to federate your Office 365 Lync with your on-premise version and wish to move people between the two configuration is required, this is that configuration:
Configure Federation:
Set-CSAccessEdgeConfiguration -AllowOutsideUsers 1 -AllowFederatedUsers 1 -EnablePartnerDiscovery 1 -UseDnsSrvRouting
New-CSHostingProvider -Identity SkypeforBusinessOnline -ProxyFqdn "sipfed.online.lync.com" -Enable
Configure shared SIP address space:
Set-CsTenantFederationConfiguration -SharedSipAddressSpace $true
Once you have set this locally establish a connection with the Skype Online service using these commands:
Import-Module SkypeOnlineConnector
$cred = Get-Credential
$CSSession = New-CsOnlineSession -Credential $cred
Then you need to enable clobber:
Import-PSSession $CSSession -AllowClobber
Configure Federation:
Set-CSAccessEdgeConfiguration -AllowOutsideUsers 1 -AllowFederatedUsers 1 -EnablePartnerDiscovery 1 -UseDnsSrvRouting
New-CSHostingProvider -Identity SkypeforBusinessOnline -ProxyFqdn "sipfed.online.lync.com" -Enable
Configure shared SIP address space:
Set-CsTenantFederationConfiguration -SharedSipAddressSpace $true
Once you have set this locally establish a connection with the Skype Online service using these commands:
Import-Module SkypeOnlineConnector
$cred = Get-Credential
$CSSession = New-CsOnlineSession -Credential $cred
Then you need to enable clobber:
Import-PSSession $CSSession -AllowClobber