尝试在 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)
感谢收到任何输入