UNABLE TO CONNECT FROM DATABRICKS TO AZURE CONTAINER

Osamwonyi Alekwe 40 Reputation points
2024-03-04T07:45:15.01+00:00

Good morning,

am unable to connect from my databricks notebook to one particular container in my storage account, as i am able to connect to other containers in the storage account. I did a comparison of the permissions they look the same,

unmount and re-mount the end point, still getting same error

see error that i get below:

Error in SQL statement: AbfsRestOperationException: Operation failed: "This request is not authorized to perform this operation using this permission.", 403, HEAD, https://heiaepng001dwestalnda01.dfs.core.windows.net/hr-lnd/hr_data_users/_spark_metadata?upn=false&action=getStatus&timeout=90

com.databricks.backend.common.rpc.SparkDriverExceptions$SQLExecutionException: Operation failed: "This request is not authorized to perform this operation using this permission.", 403, HEAD, https://heiaepng001dwestalnda01.dfs.core.windows.net/hr-lnd/hr_data_users/_spark_metadata?upn=false&action=getStatus&timeout=90 at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.services.AbfsRestOperation.completeExecute(AbfsRestOperation.java:300)

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,088 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,151 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshukatara-6769 8,715 Reputation points
    2024-03-04T08:37:32.91+00:00

    Hi ,

    Please Add the RBAC Storage Blob Data Contributor to the user that is running the notebook, or your user and if using MI, please make sure that it has above RBAC role on storage account

    Steps here: https://docs.microsoft.com/en-us/azure/synapse-analytics/security/how-to-grant-workspace-managed-ide... (Grant permissions to managed identity after workspace creation)

    And After performing above steps , please make sure that particular container authentication method is set using Microsoft Entra user account

    User's image

    Please check this , if it helps, please accept answer , Thanks

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.