Service Principle cannot access ADLS

Christoper Wulur (ext) 0 Reputation points
2025-07-03T08:16:43.1866667+00:00

Could you help me debug

Service Principle has been granted a Storage Blob Data Contributor on the storage account level. However, it cant access the container, 403

Request ID: 9f415b7e-601f-0018-16f1-eb704e000000

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 35,766 Reputation points Volunteer Moderator
    2025-07-03T09:34:23.1666667+00:00

    Hello Christopher !

    Thank you for posting on Microsoft Learn.

    Are you authenticating with Azure AD token using the Service Principal?

    If you are using tools like azcopy, Python SDK, or Azure CLI, you need to make sure that you're authenticating like this:

    az login --service-principal -u <appId> -p <secret> --tenant <tenantId>
    

    ADLS Gen2 uses RBAC (Azure Role-Based Access Control) and POSIX-style ACLs.

    Even if the Service Principal has Storage Blob Data Contributor at the storage account level, you must also set ACLs on the container and/or folders if you're accessing Data Lake Gen2 hierarchical namespaces.

    Also, if the storage account has Hierarchical Namespace enabled (HNS = true), ACLs are mandatory.


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.