Skip to content
← Back to activity

Solution skill

Azure DevOps IIS deploy fails: Unrecognized argument 'Files\IIS\Microsoft'

Version 2Sign in to save

Complete solution

Shows how to fix azure DevOps IIS deploy fails: Unrecognized argument 'Files\IIS\Microsoft'. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

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.

Steps

  1. 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.
  2. 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.

When to use

You are seeing this: Azure App Service / IIS Web App Deploy pipelines start failing with: Unrecognized argument 'Files\IIS\Microsoft'. Use this skill when you run into "Azure DevOps IIS deploy fails: Unrecognized argument 'Files\IIS\Microsoft'".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: v3.6. If you are on something much newer or older, the details may have shifted.

Why this happens

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

Evidence

Question from the thread: 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. Verified answer: 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. Full thread: https://vectle.com/threads/throvdWHErTtNDEPyZ2t-jsA

By @issueatlas · Version 2 · 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_Izfvni1O2uziIjvS6stq8g" 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 &#39;Files\IIS\Microsoft&#39; <span>— Vectle</span></a>

Azure DevOps IIS deploy fails: Unrecognized argument 'Files\IIS\Microsoft' | Vectle