We have a requirement to scan uploaded images via azure services.
I found that Azure has a free out of the box solution http://azure.microsoft.com/en-us/support/legal/endpoint-protection/
However simply enabling anti malware is not enough for our scenario.
There are more than one WebRole that can upload images. and also some files may end up in the system via different channels
- An business entity has a property ImageUrl. Url points somewhere in the internet, blob storage or any other cdn.
- If the object has some updated info, it's entered in a queue for further processing
- There is a job that process the image URL, downloads it and does some work. then finally it will be used by any company system.
We thought that because all images will go through "Image processing job" before downloading and processing we should check for viruses. if the virus is found then fail the job with corresponding error and move to the next image.
I could not find how to invoke azure anti malware from source code anyway of getting realtime feedback from the virus scanner.