gpt4 book ai didi

powershell - 如何将机器人连接到 Skype for business

转载 作者:行者123 更新时间:2023-12-03 22:48:05 26 4
gpt4 key购买 nike

我目前正在使用 Microsoft Bot Framework 并尝试将我的机器人连接到新的 Skype for business channel 。

我已按照说明操作:

  1. 下载并安装 Skype for Business Online 连接器模块
  2. 以管理员身份打开 Windows PowerShell 并运行以下命令:

    Import-PSSession (New-CsOnlineSession -Credential (Get-Credential))

  3. 输入您的管理员凭据

  4. 运行以下 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

最佳答案

您需要定位域:

sip:botname@company.onmicrosoft.com

如果您以自定义域为目标,它似乎不起作用。

关于powershell - 如何将机器人连接到 Skype for business,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44022578/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com