要求:我们希望在给定的项目中创建一个变量组(以及一些变量)。
access.

TroubleShooting:作为故障排除的一部分,对于在Postman中使用PAT (具有完全访问权限)的Option1,我们更新了PAT的权限,让创建、读取和管理Var组,如下所示。

现在,即使是Option1在使PAT具有自定义访问之后也无法工作。
我们漏掉了什么吗?
邮差详细信息:
网址:https://dev.azure.com/myorgname/_apis/distributedtask/variablegroups?api-version=6.0-preview.2
动词: Post
标题:授权:基本
正文:
{
"name": "This is ignored",
"description": "This is ignored",
"type": "Vsts",
"variables": {
"BuildConfiguration": {
"value": "Release"
}
},
"variableGroupProjectReferences": [
{
"name": "VarGroup",
"description": "The variable group to store the information about the variables using in the Pipeline",
"projectReference": {
"id": "#ProjectId#",
"name": "#ProjectName#"
}
}
]}
发布于 2021-11-09 06:14:11
我还可以重复选项1的问题,不只是Read, create, & manage for Variable Groups,即使我通过Custom defined选择all the scopes,它仍然不起作用。
我们的一些公共API目前与PAT作用域无关,因此只能与“全作用域”PATs一起使用。因此,限制全作用域PATs的创建可能会阻止某些工作流的创建。我们正在努力识别和记录受影响的API,并最终将它们与适当的范围关联起来。现在,可以通过使用允许列表来解除这些工作流的阻塞。
我认为这应该是这个问题的原因,可能还有一些额外的权限来创建变量组。对于备选案文2,可能有类似的原因。
因此,在本例中,您可能需要临时使用Full access PAT,如doc We're working to identify and document the affected APIs and eventually associate them with the appropriate scope.中提到的那样。
https://stackoverflow.com/questions/69851303
复制相似问题