ADLS Gen2 - Setting ACLs (permissions) against file systems and folders programmatically RRS feed

  • Question

  • We are migrating our existing Storage Accounts from Blob Storage to ADLS Gen2.

    After provisioning the storage accounts and file systems, we need to set specific ACLs (permissions) against the file systems (read, write, execute). 

    So far we have not been able to find documentation explaining how to do so with the Azure CLI, PowerShell or any of the SDKs (ideally Python since it is the one we are using).

    Can Anyone please point out the documentation where it is described how to set the ADLS Gen2 ACLs with:

    - Azure CLI

    - PowerShell

    - Python SDK

    - Other...?

    Wednesday, December 11, 2019 4:07 AM


  • I appreciate the answer, however the documentation provided for that "Path" API is in serious need of improvement and doesn't have a single code example, which makes it extremely hard and frustrating to follow.

    Digging a little bit more I found the links to the repositories where the preview SDKs for ADLS Gen2 are being developed. I have tried the Python one and it works like charm. Also, the documentation provided in these repos is very clear and has workable examples, which is extremely useful:

    Azure Data Lake Gen2 Storage for .NET:

    Azure Data Lake Gen2 Storage for Java

    Azure Data Lake Gen2 Storage for Python

    Thursday, December 12, 2019 2:37 AM

All replies