Prevent uploading protected files into Azure storage account

Farzana Mustafa 146 Reputation points
2023-10-26T00:50:31.6933333+00:00

Is there a way in Azure to restrict/reject password protected files from being uploaded into data storage accounts?

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,088 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,776 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 43,896 Reputation points Microsoft Employee
    2023-10-31T05:14:40.9333333+00:00

    @Farzana Mustafa

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    Please note that Azure Storage Account is a storage PaaS service. It has very limited capabilities to process the files you upload.

    You should process the files either

    • Before uploading using your application code
    • Or
    • After uploading by using Azure functions (in case the upload is done by external third party customers)
    • Even in this case, you must implement your own logic to validate if the file is considered "Password protected file", and delete them.

    Also, "Password protected file" covers a wide area of files and there is no standard on what can be considered as a Password protected file.

    • i.e., a .pfx file will mostly be password protected.
    • But the same cannot be said for a file with extension .pdf.
    • It can be either password protected or not

    Trigger for blob upload : Azure Blob storage trigger

    To delete a blob : Is it possible to delete the blob which triggers an azure function

    Kindly let us know if this helps or you need further assistance on this issue.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.