C# code to real time scan and threat detection through Azure defender while uploading file on blob store through web api

Abdul Qadir 0 Reputation points

Hi All,

I have an web api 6 c# code running for uploading files on azure blob and it is deployed on Azure App service and it is working as expected.

Now, i have added azure defender on blob storage and it has detected some file as security threat containing virus. Now i would like to change my existing uploadfile api to blob so that at the time of uploading, it checks and throws some exception as this file has virus etc. so i can notify to my application in real time.

I dont want to use any third party like Cloudserserver, ClamCV or virus total api. I want to achieve it through Azure defender only? is it possible?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,959 questions
A set of technologies in the .NET Framework for building web applications and XML web services.
3,576 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
8,997 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
978 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 44,621 Reputation points

    The scan is not done in real-time, so you need to process the security events when they occur. You may want to automate


    0 comments No comments