Hello @sakuraime ,
Thanks for the question and using MS Q&A platform.
Concept of ACLS in ADLS Gen2:
Azure Data Lake Storage Gen2 implements an access control model that supports both Azure role-based access control (Azure RBAC) and POSIX-like access control lists (ACLs). This article summarizes the basics of the access control model for Data Lake Storage Gen2.
ACLs are applied on the file and folder level. The key thing to remember is that you are always going to need RBAC Control Plane permissions in combination with ACLs. Best practice is to assign your security principals RBAC Reader role on the Storage Account/Container level and continue with more restrictive ACLs on the file and folder level.
There are two types of ACLs:
- Access ACLs: They control access to an object. An object can be a file or a folder.
- Default ACLs: These are ACLs assigned on the folder level only which get inherited as Access ACLs by the child file or folder.
For more details, refer to Access control lists (ACLs) in Azure Data Lake Storage Gen2.
Practical use case of ACLS in ADLS Gen2:
To help you understand the scenario, I had created ADLS gen2 account name chepragen22
with three containers named data2020
, data2021
and data2022
.
Note: I'm using the data2022
to provide access ACL for specific container with the Managed identity name: cheprasynapse
.
Here is the walk through on how to grant acl for a specific container.
It's time to test the linked service connection for the folder -
data2020
,data2021
, anddata2022
Note: If you test the linked service connection by using the Test connection = To linked service
, it will throw the above error message.
Try to change the linked service connection by using the
Test connection = To file path
and passdata2022
it will be successful.
Here is the complete walkthrough on testing ADLS gen2 linked service:
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators