【发布时间】:2020-08-02 11:32:49
【问题描述】:
我正在尝试创建一个发布管道,该管道将使用 Azure CLI 更新在 Pipelines-> 变量组内的库中定义的变量。
我可以使用从我的用户帐户生成的 PAT(保存在 $PipelineAccessToken 中)直接从我的计算机更新变量。
这是代理在发布管道期间执行的脚本:
$PipelineAccessToken | az devops login
az pipelines variable-group variable update
--org "https://dev.azure.com/[myOrganization]"
--project [myProject]
--group-id [groupId]
--name [variableName]
--value [newValue]
Azure 代理向我抛出此错误
TF400813: The user '' is not authorized to access this resource.
我做错了什么?
【问题讨论】:
标签: azure-devops pipeline release