gpt4 book ai didi

azure-devops - 如何正确续订我的 PAT,以便我的部署组不会因 PAT 到期而停止工作?

转载 作者:行者123 更新时间:2023-12-04 11:53:08 24 4
gpt4 key购买 nike

部署组何时会因配置的个人访问 token (PAT) 过期或重新生成而停止工作?

如果我重新生成 PAT,是否需要更新已部署的代理,例如用新的 PAT 重新配置它们?

如果我只是编辑 PAT,更新到期日期,但不执行任何其他操作,例如不重新生成 PAT 或对配置的部署代理进行任何更改?它会阻止它过期并且配置的部署代理仍然有效吗?

我们有 Azure DevOps 管道,以及配置为将解决方案安装到一台服务器的部署组。

我们有一个服务帐户,我们使用它生成了一个 PAT 并使用该 token 来配置部署组。

我试图重新生成 token ,这给了我一个新的 PAT。我还没有尝试用新的 PAT 配置服务器。但是,在重新生成 PAT 后的几个小时内,部署似乎仍然可以正常工作。

更新 PAT 以使其不会过期并且我的部署代理不会停止工作的正确方法是什么?

最佳答案

来自官方Microsoft docs :

To register an agent, you need to be a member of the administratorrole in the agent pool. The identity of agent pool administrator isneeded only at the time of registration and is not persisted on theagent, and is not used in any subsequent communication between theagent and Azure Pipelines or TFS. In addition, you must be a localadministrator on the server in order to configure the agent.

Youragent can authenticate to Azure Pipelines or TFS using one of thefollowing methods: Personal Access Token (PAT): Generate and use a PATto connect an agent with Azure Pipelines or TFS 2017 and newer. PAT isthe only scheme that works with Azure Pipelines. Also, as explainedabove, this PAT is used only at the time of registering the agent, andnot for subsequent communication.


因此,如果您删除或重新生成 PAT,代理将继续工作而不会出现任何问题。

关于azure-devops - 如何正确续订我的 PAT,以便我的部署组不会因 PAT 到期而停止工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55954771/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com