【发布时间】:2017-10-16 18:45:56
【问题描述】:
我目前正在使用 Microsoft Bot Framework,并正在尝试将我的机器人连接到新的 Skype for business 频道。
我已按照说明进行操作:
- 下载并安装 Skype for Business Online 连接器模块
-
以管理员身份打开 Windows PowerShell 并运行以下命令:
Import-PSSession(New-CsOnlineSession -Credential(Get-Credential))
输入您的管理员凭据
-
运行以下 cmdlet:
New-CsOnlineApplicationEndpoint -ApplicationId botid -Name NameOfTheBot -Uri sip:username@yourdomain
我让我们的租户管理员输入他的凭据,并使用 Office 365 许可证为机器人创建域帐户。 (我首先尝试在未分配 Office 365 许可证的情况下注册机器人)。
当机器人帐户拥有 office 365 许可证并尝试调用 New-CsOnlineApplicationEndpoint 时,我收到以下错误:
Cmdlet invocation error
+ CategoryInfo : NotSpecified: (:) [New-CsOnlineApplicationEndpoint], CmdletInvocationException
+ FullyQualifiedErrorId : Error processing cmdlet request,Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformServiceAppEndpointConfigCmdlet
+ PSComputerName : admin1e.online.lync.com
Could not find the application endpoint
+ CategoryInfo : InvalidOperation: (Microsoft.Rtc.M...cation endpoint:PlatformServiceCmdletException) [New-CsOnlineApplicationEndpoint], PlatformServiceException
+ FullyQualifiedErrorId : Could not get application endpoint or the Uri is already present as an User in BVD,Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformServiceAppEndpointConfigCmdlet
+ PSComputerName : admin1e.online.lync.com
如果没有 Office 365 许可证,我收到以下错误:
Cmdlet invocation error
+ CategoryInfo : NotSpecified: (:) [New-CsOnlineApplicationEndpoint], CmdletInvocationException
+ FullyQualifiedErrorId : Error processing cmdlet request,Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformServiceAppEndpointConfigCmdlet
+ PSComputerName : admin1e.online.lync.com
Exception of type 'Microsoft.Rtc.Management.Hosted.PlatformService.ProvisioningLibrary.ApplicationEndpointProvisioningException' was thrown.
+ CategoryInfo : InvalidOperation: (Microsoft.Rtc.M...on' was thrown.:PlatformServiceCmdletException) [New-CsOnlineApplicationEndpoint], ApplicationEndpointProvisioningException
+ FullyQualifiedErrorId : Exception of type 'Microsoft.Rtc.Management.Hosted.PlatformService.ProvisioningLibrary.ApplicationEndpointProvisioningException' was thrown.,Microsoft.Rtc.Management.Hosted.PlatformService.NewPlatformServiceAppEndpointConfigCmdlet
+ PSComputerName : admin1e.online.lync.com
我还关注了有关 Skype for Business 连接器的一些更通用的信息,详见此处:https://msdn.microsoft.com/en-us/skype/trusted-application-api/docs/trustedapplicationendpoint
我也尝试使用此问题中提到的新帐户,但遇到相同的错误:Unable to connect bot to Skype For Business Online
【问题讨论】:
-
这里有同样的问题。有一种少了一步的感觉。您现在正尝试将 Microsoft App ID 添加到 Azure AD 租户,而无需注册它或类似的东西。我一直在研究它,但到目前为止还没有找到解决方案。
标签: powershell botframework skype-for-business