Azure DevOps代理配置已成功连接到服务器,但失败并显示“错误VS30063:您无权访问...”

问题描述

我在笔记本电脑上安装了Azure DevOps代理,并尝试对其进行配置。它确实连接到Azure服务器,并且在代理列表中显示的服务器上看到了它,但是config.cmd失败,错误为VS30063:

PS C:\agent> ./config.cmd

>> Connect:

Enter server URL > https://myazuredevops.com
Enter authentication type (press enter for PAT) >
Enter personal access token > ****************************************************
Connecting to server ...

>> Register Agent:

Enter agent pool (press enter for default) >
Enter agent name (press enter for WINDOWS-NKCBPLC) >
Scanning for tool capabilities.
Connecting to the server.
Enter replace? (Y/N) (press enter for N) > y
Successfully replaced the agent
Testing agent connection.
VS30063: You are not authorized to access  https://myazuredevops.com.

日志文件包含以下几行:

......
[2020-08-26 10:56:13Z INFO ConfigurationManager] Agent server url resolve by  server: 'https://myazuredevops.com/'.
[2020-08-26 10:56:13Z INFO ConfigurationStore] Saving OAuth credential @ C:\agent\.credentials
[2020-08-26 10:56:13Z INFO ConfigurationStore] Credentials Saved.
[2020-08-26 10:56:14Z INFO Terminal] WRITE LINE: Testing agent connection.
[2020-08-26 10:56:14Z INFO ConfigurationStore] HasCredentials()
[2020-08-26 10:56:14Z INFO ConfigurationStore] stored True
[2020-08-26 10:56:14Z INFO CredentialManager] GetCredentialProvider
[2020-08-26 10:56:14Z INFO CredentialManager] Creating type OAuth
[2020-08-26 10:56:14Z INFO CredentialManager] Creating credential type: OAuth
[2020-08-26 10:56:14Z INFO RSAEncryptedFileKeyManager] Loading RSA key parameters from file C:\agent\.credentials_rsaparams
[2020-08-26 10:56:14Z INFO VisualStudioServices] Starting operation Location.GetConnectionData
[2020-08-26 10:56:14Z WARN VisualStudioServices] Authentication Failed with status code 401.
.....

2020年9月21日

试图在Azure云上的ubuntu服务器上安装和配置代理。遇到相同的错误

解决方法

1。确保您的Azure Devops帐户有权管理当前组织中的代理。

2。然后创建具有Read & manage权限的新PAT

enter image description here

3。再次运行config.cmd,然后在此步骤输入新名称

enter image description here

4。如果问题仍然存在,则可以创建一个新的代理程序池并在其中注册代理程序以检查是否有帮助:

enter image description here