当我运行python脚本来管理azure环境上的vm时,由于AuthorizationFailed消息,它将失败。以下异常将与错误消息一起打印
云错误("对象id为“bdafca09-d426-4924-b63c-dff61c034187”的客户端“bdafca09-d426-4924-b63c-dff61c034187”无权执行操作“Microsoft.Resources/subscriptions/resourcegroups/write'over scope'/subscriptions/49ec57ce-8a6f-4cdf-95bf-8163b231edf6/resourcegroups/azure示例组虚拟机”,或者作用域无效。I如果最近已授予访问权限,请刷新您的凭据。“)
您需要为您在门户网站的Azure AD中创建的应用程序添加
Contributor
角色相关问题 更多 >
编程相关推荐