在Windows计算机上设置自托管代理:写错误:发生错误:未配置

时间:2020-04-17 12:56:33

标签: azure-devops azure-devops-self-hosted-agent

尝试在Windows计算机上设置自托管Azure DevOps代理。 前提条件已经过验证并能保持良好状态-Windows 10计算机,Powershell 5.1,.NET Framework 4.7。正确配置了PAT,将代理管理员角色分配给了用户。执行run.cmd时,消息出现“错误发生:未配置”

在_diag文件夹下检查日志时,这是错误的快照

[2020-04-16 18:47:26Z INFO ConfigurationManager] LoadSettings
[2020-04-16 18:47:26Z INFO ConfigurationStore] IsConfigured()
[2020-04-16 18:47:26Z INFO ConfigurationStore] IsConfigured: False
[2020-04-16 18:47:26Z INFO ConfigurationManager] Is configured: False
[2020-04-16 18:47:26Z ERR  Terminal] WRITE ERROR: An error occurred: Not configured
[2020-04-16 18:47:26Z ERR  AgentProcess] System.InvalidOperationException: Not configured
   at Microsoft.VisualStudio.Services.Agent.Listener.Configuration.ConfigurationManager.LoadSettings()
   at Microsoft.VisualStudio.Services.Agent.Listener.Agent.ExecuteCommand(CommandSettings command)
   at Microsoft.VisualStudio.Services.Agent.Listener.Program.MainAsync(IHostContext context, String[] args)

感谢收到任何输入

1 个答案:

答案 0 :(得分:0)

config.cmd必须已运行并成功完成,然后才能运行run.cmd