Access Azure Data Lake Storage Gen2 using OAuth 2.0 with an Azure service principal

Tan, Judith 1 Reputation point
2021-10-30T18:03:24.987+00:00

i Created a service principal and Assign the application to a role section of the article, make sure to assign the Storage Blob Data Contributor role to the service principal. do i need to Make sure that my user account has the Storage Blob Data Contributor role assigned to it?

i still received error 403 This request is not authorized to perform this operation. any reason why?

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.
1,337 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,913 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 76,746 Reputation points Microsoft Employee
    2021-11-01T09:09:10.143+00:00

    Hi @Tan, Judith ,

    Thanks for the question and using MS Q&A platform.

    You control access to storage resources by assigning roles to an Azure AD application registration associated with the storage account.

    Assigning the Storage Blob Data Contributor to the ADLS Gen2 storage account should be good enough.

    When granting permission, in Azure resource's Access Control (IAM) tab -> Add role assignment -> Assign access to -> select registered application and role Storage Blob Data Contributor.

    145429-image.png

    Note: Please do wait for 10-15 mins to reflect the permissions.

    Now try to Mount the Azure Data Lake Storage Gen2 using OAUTH 2.0

    145444-image.png

    For more details, refer to Access Azure Data Lake Storage Gen2 using OAuth 2.0 with an Azure service principal.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png 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