创建发布定义时,Visual Studio在线权限不足

时间:2017-05-16 11:25:20

标签: visual-studio azure azure-devops

我尝试使用任务"Deploy Azure App Service"在Visual Studio Online中创建发布定义。

当我尝试授权订阅时,它会在下面给出此错误消息。

Error(s):
Insufficient privileges to complete the operation. For troubleshooting refer to <a href="https://go.microsoft.com/fwlink/?linkid=835898" target="_blank">link</a>.

Insufficient privileges to complete the operation message

他们提供的链接内容似乎对我没有帮助。

我已经使用Azure Service Administrator帐户尝试了此操作。

为什么会这样?这样做需要什么样的权限?

1 个答案:

答案 0 :(得分:1)

用户必须是目录中全局管理员角色的成员。

另一方面,您可以使用this PowerShell脚本手动配置它。

更多信息,您可以参考Automating Azure Resource Group deployment using a Service Principal in Visual Studio Online: Build/Release Management(手动配置部分)

  

下载&amp;在Azure Powershell窗口中运行此PowerShell脚本   为基于Service Principal的Azure服务生成所需数据   连接。运行此脚本会提示您输入:

     

Azure订阅名称的名称

     

您要为将要创建的服务主体设置的密码          注意:该脚本已使用Azure PowerShell 1.0.2版进行了测试。

     

一旦成功,脚本将输出以下详细信息   Azure服务端点。

     

连接名称

     

订阅ID

     

订阅名称

     

服务主体客户ID

     

服务主要密钥

     

租户ID