How to Scan an Azure Blob for Viruses in Node.JS

When you’ve stored valuable content in an Azure Blob, you want to ensure that it’s free from threats such as viruses, trojans, malware, spyware, and ransomware. Fortunately, we’ve got an API for that! The following API in Node.JS leverages continuously updated signatures to scan the contents of a single Azure Blob for multiple threats, so you can be confident that your storage is safe.

Image for post
Image for post

To install the SDK, you can run this command:

npm install cloudmersive-virus-api-client --save

Or, add this snippet to your package.json:

  "dependencies": {
"cloudmersive-virus-api-client": "^1.1.7"

Then, you can call the function using the following code:

var CloudmersiveVirusApiClient = require('cloudmersive-virus-api-client');
var defaultClient = CloudmersiveVirusApiClient.ApiClient.instance;

This will provide you with the results of the scan instantly! Our rapid response time ensures you have the information to rest easy, or if a virus is identified, address the issue swiftly and efficiently.

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