I am using .net framework 4.5.1, I want to scan files for virus with in app service only. It is web app project, I want to do it without web/worker role
Asked
Active
Viewed 3,418 times
-1
-
2what have you tried so far? can you please show any attempts made so far? – mast3rd3mon Dec 10 '18 at 12:07
-
I have tried to use clam AV, but it require worker role in azure cloud service, so I want to do it in web api/c# only with some dll installed or running command line prompt for virus scanning ? so that it will work when i publish web app in azure – Harleen Kour Dec 11 '18 at 09:57
1 Answers
0
When using Azure App Service, the underlying service that hosts the web app has Microsoft Antimalware enabled on it. This is used to protect Azure App Service infrastructure and does not run on customer content. [doc]
There are ideas on how to achieve this already on S/O. Virus Scanning Uploaded files from Azure Web/Worker Role

Ken W - Zero Networks
- 3,533
- 1
- 13
- 18
-
Is there any way to scan files without using web/worker role and do it in web api/c# only with some dll installed or running command line prompt for virus scanning ? so that it will work when i publish web app in azure – Harleen Kour Dec 11 '18 at 09:52
-
Windows Defender is available in the D:\Program Files\Windows Defender\ folder of your web app. You could try to call it from your web app but I have not tested this and have no idea if it's supported. https://learn.microsoft.com/en-us/previous-versions/technet-magazine/gg131918(v=msdn.10) – Ken W - Zero Networks Dec 11 '18 at 15:52