简体   繁体   English

无法为 python 创建 azure 机器人应用程序服务

[英]Can't create azure bot app service for python

I wish to try to deploy one from sample azure bot ( https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/python/57.teams-conversation-bot ) on azure platform.我希望尝试在 azure 机器人( https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/python/57.teams-conversation-bot )上部署 azure 机器人(https)中的一个。 I use standart tutorial https://aka.ms/azuredeployment , but face problem when try to create azure bot app service with new resource group (4 step of tutorial, az deployment create command).我使用标准教程https://aka.ms/azuredeployment ,但是在尝试使用新资源组创建 azure 机器人应用程序服务时遇到问题(教程的 4 步, az deployment create命令)。 But when I try do that: az deployment create --template-file "D:\py\botbuilder-samples\generators\python\app\templates\echo\{{cookiecutter.bot_name}}\deploymentTemplates\template-with-new-rg.json" --location centralus --parameters appId="XXXXXX" appSecret="XXXXXX" botId="exobot2020" botSku=F0 newAppServicePlanName="ExoServ" newWebAppName="ExoServWeb" groupName="ExoServGroup" groupLocation="East US" newAppServicePlanLocation="East US" --name "ExoBot"但是当我尝试这样做时: az deployment create --template-file "D:\py\botbuilder-samples\generators\python\app\templates\echo\{{cookiecutter.bot_name}}\deploymentTemplates\template-with-new-rg.json" --location centralus --parameters appId="XXXXXX" appSecret="XXXXXX" botId="exobot2020" botSku=F0 newAppServicePlanName="ExoServ" newWebAppName="ExoServWeb" groupName="ExoServGroup" groupLocation="East US" newAppServicePlanLocation="East US" --name "ExoBot"

console throws that:控制台抛出:

{'additionalProperties': {}, 'code': 'InvalidTemplate', 'message': "Deployment template validation failed: 'The resource 'Microsoft.Web/serverfarms/ExoServ' is not defined in the template. Please see https://aka.ms/arm-template for usage details.'.", 'target': None, 'details': None, 'additionalInfo': [{'additionalProperties': {}, 'type': 'TemplateViolation', 'info': {'lineNumber': 0, 'linePosition': 0, 'path': ''}}]} . {'additionalProperties': {}, 'code': 'InvalidTemplate', 'message': "Deployment template validation failed: 'The resource 'Microsoft.Web/serverfarms/ExoServ' is not defined in the template. Please see https://aka.ms/arm-template for usage details.'.", 'target': None, 'details': None, 'additionalInfo': [{'additionalProperties': {}, 'type': 'TemplateViolation', 'info': {'lineNumber': 0, 'linePosition': 0, 'path': ''}}]}

So I have to change some var in template json?所以我必须在模板 json 中更改一些 var? or what?或者是什么? Case information about this action in tutorial is doesn't exist.教程中有关此操作的案例信息不存在。 How to really deploy local bython azure bot in azure cloud platform? azure云平台如何真正部署本地bython azure bot?

It may be a problem with location.可能是位置问题。

Looks like you are trying to run the bot in central US in an App Service Plan that is in East US.看起来您正试图在美国东部的应用服务计划中在美国中部运行机器人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM