Scan an Azure Blob for Viruses in C#

We’ve seen some incredible advancements in our technology driven era, but along with the benefits come challenges; it seems like every day we hear about a new virus, malware, or spyware attack. If you’re utilizing an Azure Blob for file storage, you can leverage the following API using C# to ensure your content is free from threats. This API is kept current with continuous cloud-based updates to ensure you receive the most accurate and secure scan possible.

Image for post
Image for post

To use the Cloudmersive API, we have both .NET Framework and .NET Core SDKs available for installation, but for this example we will be using .NET Framework:

Install-Package Cloudmersive.APIClient.NET.VirusScan -Version 3.0.3

Then, call the function with the following code:

using System; 
using System.Diagnostics;
using Cloudmersive.APIClient.NET.VirusScan.Api;
using Cloudmersive.APIClient.NET.VirusScan.Client;
using Cloudmersive.APIClient.NET.VirusScan.Model;

And before you can blink, your result will be ready! At this point you can relax with the knowledge that your Azure Blob is virus-free or take action against the identified virus if not.

Written by

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store