Error: This request is not authorized to perform this operation using this permission.", 403 in Azure Databricks notebook while running from ADF

Vinayaka Dalawai 11 Reputation points
2022-03-19T18:43:40.953+00:00

Hi ,
I see the below error when I run a databricks notebook from ADF.

Operation failed: "This request is not authorized to perform this operation using this permission.", 403, HEAD, https://*****datalakewe.dfs.core.windows.net/****/****/****/****.csv?upn=false&action=getStatus&timeout=90

Below is the code in notebook:
Trying to read a csv from azure data lake gen2.

Config_table=spark.read.format("csv").option("header",'True').load('abfss://****@****datalakewe.dfs.core.windows.net/*****/*****/)****.csv')

When I run the same cell manually in databricks, I face no errors.
184748-image.png

I have been trying to understand if there is some access issue which is restricting data factory to run this.
Please provide your inputs on this.

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,474 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,181 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,739 questions
{count} vote

2 answers

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 89,816 Reputation points Microsoft Employee
    2022-03-22T08:04:08.74+00:00

    Hello @Vinayaka Dalawai ,

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

    To resolve this issue, you need to verify the access permissions for the ADF and user type:

    Note: Storage Blob Data Contributor: Use to grant read/write/delete permissions to Blob storage resources.

    ADF permissions: Kindly check the permissions on the Storage account.

    185423-image.png

    Check the user permission on the storage account.

    185513-image.png

    For more details, refer to the below threads addressing similar issue:

    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
    2 people found this answer helpful.

  2. Pratik Somaiya 4,206 Reputation points
    2022-03-20T05:49:09.55+00:00
    1 person found this answer helpful.
    0 comments No comments

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.