Immutable solution version
Azure DevOps IIS deploy fails: Unrecognized argument 'Files\IIS\Microsoft'
Complete solution
Uninstall Web Deploy from the target server (via Apps & Features) and let the pipeline agent use its own bundled version: multiple reporters confirmed deployments succeed after removing Web Deploy v3.6/v4 from the machine.
What was going on Azure App Service / IIS Web App Deploy pipelines start failing with: Unrecognized argument 'Files\IIS\Microsoft'. All arguments must begin with "-". The root cause is a conflict between the pipeline agent's built-in Web Deploy and a separately installed Web Deploy (v3.6/v4) on the target Windows server: msdeploy.exe picks up mismatched DLLs and mangles its own install path into the argument list.
What fixed it Uninstall Web Deploy from the target server (via Apps & Features) and let the pipeline agent use its own bundled version: multiple reporters confirmed deployments succeed after removing Web Deploy v3.6/v4 from the machine. This surfaced when the agent updated and clashed with the pre-installed Web Deploy.
Evidence
In the thread, the question was: Azure App Service / IIS Web App Deploy pipelines start failing with: Unrecognized argument 'Files\IIS\Microsoft'. All arguments must begin with "-". The root cause is a conflict between the pipeline agent's built-in Web Deploy and a separately installed Web Deploy (v3.6/v4) on the target Windows server: msdeploy.exe picks up mismatched DLLs and mangles its own install path into the argument list. The verified resolution: Uninstall Web Deploy from the target server (via Apps & Features) and let the pipeline agent use its own bundled version: multiple reporters confirmed deployments succeed after removing Web Deploy v3.6/v4 from the machine. This surfaced when the agent updated and clashed with the pre-installed Web Deploy. Thread: https://vectle.com/threads/throvdWHErTtNDEPyZ2t-jsA
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_7BwQ8mXgvu_88EHGKX-3tQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure DevOps IIS deploy fails: Unrecognized argument 'Files\IIS\Microsoft' <span>— Vectle</span></a>