IIS Web App manager will only work on Windows Server machines as it will try to use 'servermanager', only available on WinServer.
As you are running this agent on your local machine, which is a Windows desktop system, you should use other way to deploy on your release pipeline (powershell scripts/cmd).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.