我使用 Microsoft 企业机器人模板创建了一个机器人,现在我想将其部署到 Azure。我正在关注这个guide ,但在执行以下命令后出现以下错误
命令:
msbot clone services --name "YOUR_BOT_NAME"
--luisAuthoringKey "YOUR_AUTHORING_KEY"
--folder "DeploymentScripts\LOCALE_FOLDER"
-- location "REGION"
错误:
Command failed: az group create -g MyBot -l "region" --subscription KEY
ERROR: The client 'abcd' with object id '679ebaf5-4345-408c-87ef-
9c3bd2795a94' does not have authorization to perform action
'Microsoft.Resources/subscriptions/resourcegroups/write' over scope
'/subscriptions/abcd/resourcegroups/MyBot'.
最佳答案
这意味着您缺乏执行此操作的权限,您需要授予您的服务主体\用户权限(贡献者是解决此问题的最简单方法)来执行该操作。您可以在特定资源组或订阅上授予它们。
https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal
关于azure - 在 azure 上部署 Microsoft 企业机器人模板时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54295486/