Search code examples
azureazure-storageazure-blob-storage

Is there a way to add ACL per Blob (File) in an Azure Storage Blob Container?


I'm moving some files from S3 to Azure Storage. I was using ACL per file in the S3 Account, so I had some private files and some public files in the same Bucket.

The problem is that I cannot find a way to set ACL per file in Azure Storage, I see I can set ACL in the container, but no in the Blob.

Is there a way to do this, or is not possible in Azure Storage?

Edit:

I ended up using one container for public files and one container for private files, that made the transition from S3 to Azure Storage a little more difficult but I didn't want to add another layer of complexity to my app (Azure Data Lake).


Solution

  • Azure Data Lake Storage (ADLS) Gen 2 has built in support for ACLs at the files and directories level. ADLS Gen 2 is built on Blob Storage. You can easily manage the ACLs with many tools/languages such as Storage Explorer, PowerShell or Python.