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
2023-03-12T12:52:54.86+00:00

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.
2,415 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 questions
C#
C#
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.
10,204 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.
1,186 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 55,041 Reputation points
    2023-03-12T17:47:56.6366667+00:00

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

    https://learn.microsoft.com/en-us/azure/defender-for-cloud/workflow-automation

    0 comments No comments