WinRM - IIS Web 应用程序管理 Azure Pipelines 错误

WinRM - IIS Web App Management Azure Pipelines error

我试图通过使用 TFS Step 远程连接到网站来停止该网站的应用程序池。 该步骤似乎配置正确。部署步骤有效,但 IIS 管理无效

这是管理 IIS 网站的步骤:

在日志中,我收到一个没有太多反馈的错误。我在网上也没找到

这是日志错误Microsoft.PowerShell.Commands.WriteErrorException: Caught exception while executing main function: The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.

有什么方法可以做到这一点,或者通过 powershell 脚本我可以 运行 在 powershell 任务中?

为空的参数是 adminPassword 变量。没有显示任何详细信息,需要调试 TFS 的实际脚本。