New-CsOnlineSession returns (404) Not Found

For some time ago I was in the process of setting up a Hybrid “Skype for Business Online” and “Lync 2013 On-oprem” environment.
When it was time to activate the Lync-federation with the New-CsOnlineSession cmdlet I got rejected with a (404) Not Found

I received the following output:

VERBOSE: Determining domain to admin
VERBOSE: AdminDomain = ‘domain.onmicrosoft.com’
VERBOSE: Discovering PowerShell endpoint URI

Get-CsPowerShellEndpoint : The remote server returned an error: (404) Not Found.
At C:\Program Files\Common Files\Skype for Business Online\Modules\SkypeOnlineConnector\SkypeOnlineConnectorStartup.psm1:94 char:26
+ $targetUri = Get-CsPowerShellEndpoint -TargetDomain $adminDomain
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-CsPowerShellEndpoint], WebException
+ FullyQualifiedErrorId : System.Net.WebException,Microsoft.Rtc.Management.OnlineConnector.GetPowerShellEndpointCmdlet

The solution to this wasn’t easy to find since 404 usually means network issues.
The Office 365 support was very help full and we discovered after a few hours that the Skype for Busniess Online tenant wasn’t “Active”.
So the solution was to give a user, any user, a license for Skype for Business so that users shows up in the Skype for Business admin portal.

Leave a Comment

Your email address will not be published. Required fields are marked *