Unable to call MpCmdRun.exe in Azure App Service

danobri 56 Reputation points

I am trying to scan a file for viruses using the Windows Defender instance that is included in a Windows Azure App Service using the Kudu Console. Here is the command I am running:

"%ProgramFiles%\Windows Defender\mpcmdrun.exe" -scan -scantype 3 -file "D:\local\test.txt" -disableremediation

And here is the error log that gets created:

MpCmdRun: Command Line: "D:\Program Files\Windows Defender\mpcmdrun.exe"  -scan -scantype 3 -file "D:\local\test.txt" -disableremediation
 Start Time: ‎Thu ‎Jun ‎04 ‎2020 10:30:05

Starting RunCommandScan.
INFO: ScheduleJob is not set. Skipping signature update.
Scanning path as file: D:\local\test.txt.
Start: MpScan(MP_FEATURE_SUPPORTED, dwOptions=33558577, path D:\local\test.txt, DisableRemediation = 1, BootSectorScan = 0, Timeout in days = 1)
ERROR: MpScanStart(dwOptions=33558577) Failed 80010005
MpCmdRun: End Time: ‎Thu ‎Jun ‎04 ‎2020 10:30:05
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,357 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach 251 Reputation points

    @danobri, based on recent discussions with the product group, I do not believe this is possible as they stated there is no known virus scanner visible to customers to leverage.

    Please let us know if you have further questions or concerns.

    You can add your feature request here, which is a site the product group uses to review customer feedback and feature requests.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. danobri 56 Reputation points
    2 people found this answer helpful.