【发布时间】:2020-10-12 14:29:05
【问题描述】:
我希望尝试在 azure 平台上从示例 azure bot (https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/python/57.teams-conversation-bot) 部署一个。我使用标准教程 https://aka.ms/azuredeployment ,但在尝试使用新资源组创建 azure bot 应用程序服务时遇到问题(教程的 4 步,az deployment create 命令)。但是当我尝试这样做时:
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"
控制台抛出:
{'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': ''}}]}.
所以我必须在模板 json 中更改一些 var?要不然是啥?教程中有关此操作的案例信息不存在。 azure云平台如何真正部署本地bython azure bot?
【问题讨论】:
标签: python azure bots azure-bot-service