Pages Menu
TwitterRssFacebook

Posted by on Oct 3, 2017 in Bot Framework, Skype for Business® (Lync®)

Microsoft Bot Framework Bots now work in Skype for Business Hybrid

Microsoft Bot Framework Bots now work in Skype for Business Hybrid

There’s been an update in functionality to the Skype for Business Channel in Microsoft Bot Framework, which I previously wrote about in May. At that time, the channel only worked with Skype for Business Online environments.

The same channel will now additionally work with Skype for Business Hybrid environments.

The setup steps start out the same:

  • Build your bot in Bot Framework and test
  • Add the Skype for Business channel
  • Follow the online instructions to run New-CsOnlineApplicationEndpoint

For Hybrid customers, there is an additional step, which is to run a on-premise command to register the application endpoint locally:

New-CsHybridApplicationEndpoint

This is a new PowerShell cmdlet, which was released in Skype for Business Skype for Business Server Cumulative Update 5  (so you’ll need to make sure you have that installed)

New-CsHybridApplicationEndpoint -ApplicationId <AppID generated from Bot Framework Portal like 41ec7d50-ba91-120873ee-136b88859725> -DisplayName <NameOfTheBot> -SipAddress sip:<[email protected]> –OU <ou=Redmond,dc=litwareinc,dc=com>

The ApplicationId, DisplayName and SipAddress parameters are the same as for New-CsOnlineApplicationEndpoint, and the values should match what you used for that command. The -OU parameter is the Azure Directory Organizational Unit (OU) of the user.

Note that you run this new cmdlet as well as the New-CsOnlineApplicationEndpoint cmdlet, not instead of!

 

In order for the object you created locally to be synced up with the object created in Azure you need to wait for your next Azure Active Directory sync cycle, or use Start-ADSyncSyncCycle .

More information is provided in a newly published MSDN article: Skype for Business Bot – Hybrid environment support.

Written by Tom Morgan

Tom is a Microsoft Teams Platform developer and Microsoft MVP who has been blogging for over a decade. Find out more.
Buy the book: Building and Developing Apps & Bots for Microsoft Teams. Now available to purchase online with free updates.

1 Comment

  1. Do we have’Presence’ isues addressed for SFB now. Bot should always show Online.

Post a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.