能够使用创建新的服务端点
并且还可以使用下面的管道权限授予它
curl --request PATCH -H "Content-Type: application/json" -u $user:$token -d "@newpatch.json" https://dev.azure.com/$org/$project/_apis/pipelines /pipelinePermissions/endpoint/$connection_id\?api-version\=5.1-preview.1
但是当我尝试在管道中使用服务连接时,它给了我以下错误
无法查询服务连接 API:“https://management.azure.com/subscriptions/resourcegroups?api-version=2019-05-01”。状态代码:'BadRequest',来自服务器的响应:'{"error":{"code":"InvalidSubscriptionId","message":"提供的订阅标识符 'resourcegroups' 格式错误或无效。"}}'
我已经尝试过 - update restproxy但我仍然看到错误,不确定脚本的正文
请帮忙