question

TanJudith-6314 avatar image
0 Votes"
TanJudith-6314 asked PRADEEPCHEEKATLA-MSFT commented

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

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-databricksazure-data-lake-storage
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TanJudith-6314,

Following up to see if the below suggestion was helpful. And, if you have any further query do let us know.


  • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.

0 Votes 0 ·

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
0 Votes"
PRADEEPCHEEKATLA-MSFT answered PRADEEPCHEEKATLA-MSFT commented

Hi @TanJudith-6314,

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


image.png (189.5 KiB)
image.png (103.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TanJudith-6314,

Just checking in to see if the above answer helped. If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

0 Votes 0 ·