azure-devops - 如何删除 config.cmd 挂起的 azagent?
问题描述
.\config.cmd remove 挂起。我在管理员下运行最新的 PS。我运行命令,记录状态。
[2020-03-25 17:45:09Z INFO Terminal] WRITE LINE: Removing agent from the server
[2020-03-25 17:45:09Z INFO ConfigurationStore] IsConfigured()
[2020-03-25 17:45:09Z INFO ConfigurationStore] IsConfigured: True
[2020-03-25 17:45:09Z INFO ConfigurationStore] HasCredentials()
[2020-03-25 17:45:09Z INFO ConfigurationStore] stored True
[2020-03-25 17:45:09Z INFO ConfigurationStore] Read setting file: 189 chars
[2020-03-25 17:45:09Z INFO ConfigurationManager] GetCredentialProvider
[2020-03-25 17:45:09Z INFO CommandSettings] Arg 'auth': ''
[2020-03-25 17:45:09Z INFO CommandSettings] Flag 'unattended': 'False'
[2020-03-25 17:45:09Z INFO PromptManager] ReadValue
[2020-03-25 17:45:09Z INFO Terminal] WRITE: Enter authentication type (press enter for PAT) >
[2020-03-25 17:45:09Z INFO Terminal] READ LINE
我没有看到这一点。只是闪烁的光标。我需要在 PowerShell 中设置一些权限吗?我必须关闭 Powershell 并重新打开。
解决方案
这已经回答了。尝试在 PowerShell ISE 中运行不允许交互。从管理员命令提示符运行。
推荐阅读
- c# - Swashbuckle / swagger 文档缺失信息
- sql - SQL Server,将 CASE 语句聚合到一行中
- php - 类型转换雄辩的关系 laravel
- java - 如何创建一串文本并将位置传递给 ListView 适配器?
- c++-cli - 无法将参数 1 从 'System::IO::StreamWriter ^' 转换为 Windows 形式的 'System::IO::Stream ^
- python - 我的结果被截断为一行。我如何让它打印所有内容?
- xcode - Xcode 11 添加新的约束集零:使用设置值而不是默认/标准
- php - 在插入符号处插入而不是替换整个文本区域
- c# - 使用 RestSharp 调用 OAuth1 api,使用的参数范围不起作用
- mysql - 带有字符串变量的mysql查询