本文介绍了如何正确更新我的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?

推荐答案

从官方 Microsoft文档:

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

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,则代理将继续工作而不会出现任何问题.

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

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

10-11 21:52