没有 Azure 的机器人框架可能吗?
如果我使用 Microsoft Bot Framework 构建机器人,我是否需要将我的机器人部署到 Azure 以注册我的机器人 此处 以便为机器人配置频道?或者我可以简单地将我的机器人部署到一个普通的(例如)IIS 服务器上?
If i'm building a bot with the Microsoft Bot Framework, do i need to deploy my bot to Azure in order to register my bot HERE in order to configure the channels for the bot? Or can i simply deploy my bot to a normal (for example) IIS Server?
我找不到有关此主题的任何信息,也不想使用 Azure.
I couldnt find any information on this toppic and i dont want to use Azure.
是的,应该可以在 IIS 或任何其他托管服务(包括 Azure 之外的云托管)上运行您的机器人,如此处.您必须确保您的机器人具有可访问互联网的端点和有效的 HTTPS 证书.
Yes, it should be possible to run your bot on IIS or in any other hosting service (including cloud hostings besides Azure) as explained here. You will have to make sure that your bot has an internet-accessible endpoint and a valid HTTPS cert.
关于 HTTPS 证书的要求,我正在复制此 线程的信息 供您参考:
Regarding the requirements for the HTTPS cert, I'm copying the info for this thread for your reference:
Bot Framework 要求 x.509v3 证书由您的端点是最新且有效的.大多数检查当前和有效"是对服务器证书的标准检查:CN 必须与主机名,它不能过期,不能在 CRL 中列出,它必须有正确的 EKU 集等.
The Bot Framework requires that the x.509v3 certificate exposed by your endpoint be current and valid. Most of the checks for "current and valid" are standard checks for server certs: the CN must match the hostname, it must not be expired, it must not be listed in a CRL, it must have the correct set of EKUs, etc.
最重要的是,您的证书必须链接到根证书颁发机构受微软信任.这些 CA 的最新列表可用 此处.
Most importantly, your cert must chain to a root certificate authority trusted by Microsoft. The latest list of these CAs is available here.
此外,您可以注册您的机器人,甚至无需部署到 Azure 或任何其他主机即可启用通道.您可以暂时使用 ngrok 创建安全隧道到您的本地主机环境并在将其暴露给其他用户之前在您的电子邮件频道中测试该机器人.顺便说一句,您不需要在 BotFramework 门户中发布您的机器人,只需注册即可.发布仅适用于希望出现在机器人目录中的那些机器人.
Also, you can register your bot and even enable the channels without deploying to Azure or any other hosting. You can temporarily use ngrok to create a secure tunnel to your localhost environment and test the bot in your email channel before exposing it to other users. BTW, you don't need to Publish your bot in the BotFramework portal, just register it. Publishing is just for those bots that would like to appear in the Bot Directory.