如何正确更新我的PAT,以使我的部署组不会由于PAT到期而停止工作? [英] How do I properly renew my PATs so that my deployment groups do not stop working due to expiration of the PAT?

查看:91
本文介绍了如何正确更新我的PAT,以使我的部署组不会由于PAT到期而停止工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

部署组何时由于配置了它的个人访问令牌(PAT)过期或再生而停止工作?

When does a Deployment Group stop working due to expiration or regeneration of the Personal Access Token (PAT) that it was configured with?

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

If I regenerate the PAT, do I need to update the deployed agents, e.g. reconfigure them with the new PAT?

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

What happens if I just edit the PAT, update the Expiration date, but don't do anything else, e.g. do not regenerate the PAT or do any changes at the configured deployment agent? Will it stop it from expiring and the configured deployment agent still work?

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

We have Azure DevOps pipeline, along with a deployment group configured to install the solution to one server.

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

We have a service account, which we use have generated a PAT and used that token to configure the Deployment Group.

我试图重新生成令牌,这给了我一个新的PAT.我尚未尝试使用新的PAT配置服务器.但是,从重新生成PAT以来,部署似乎仍可以正常工作.

I have tried to regenerate the token, which gave me a new PAT. I have not tried to configure the server with the new PAT. However, deployments still seem to work just fine hours from regenerating the PAT.

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

What is the proper way to update the PAT so that it does not expire and my deployment agents do not stop working?

推荐答案

从官方

要注册代理,您需要成为管理员的成员 代理池中的角色.代理程序池管理员的身份为 仅在注册时需要,并且未持久保留在 代理,并且不会在 代理和Azure Pipelines或TFS.此外,您必须是本地人 服务器上的管理员以配置代理.

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

您的 代理可以使用以下任一方式向Azure Pipelines或TFS进行身份验证 以下方法:个人访问令牌(PAT):生成和使用PAT 将代理与Azure Pipelines或TFS 2017及更高版本连接. PAT是 唯一适用于Azure Pipelines的方案. 另外,如所述 以上,此PAT仅在注册代理时使用,并且 不再进行后续沟通.

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

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

So, if you remove or re-generate the PAT the agents will keep working without any issues.

这篇关于如何正确更新我的PAT,以使我的部署组不会由于PAT到期而停止工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆