我正在为我的持续部署设置一个暂存环境。我正在使用Azure DevOps服务来管理代码库和流水线。
我需要将Azure Active Directory登录添加到我的Linux虚拟机中。到目前为止,我遵循了这个指南。它在我的机器上有效,但当我尝试在Azure DevOps上运行时,出现以下错误。
2019-04-08T14:54:33.7657868Z ERROR: The client '********-****-****-****-************' with object id '********-****-****-****-************' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/write' over scope '/subscriptions/***/resourceGroups/staging-rg/providers/Microsoft.Compute/virtualMachineScaleSets/webscaleset/providers/Microsoft.Authorization/roleAssignments/********-****-****-****-************'.
看起来我的Azure DevOps服务连接缺少roleAssignment/write权限。我不知道如何添加。