cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Manged Identitify within Databricks Azure to access Blob Container?

Dex
New Contributor

Hi,

My organization has asked that all blob storage accounts be accessed via managed identity. Several data brick notebooks are affected, so I'm currently trying to see how to set up a managed identity.

We've added the Databricks resource provider to the managed identity with Contributor access; however, when accessing blob resources, we get a resource not found error. I don't believe the access is being passed to the cluster, and I am struggling of find relevant documentation for this use case

 

 

from azure.identity import DefaultAzureCredential
from azure.storage.blob import BlobServiceClient

# Create a credential object
credential = DefaultAzureCredential()

# Construct the blob service client
blob_service_client = BlobServiceClient(
    account_url=f"https://{storage_account_name}.blob.core.windows.net",
    credential=credential
)

blob_service_client.list_containers()

 

 

1 REPLY 1

Walter_C
Databricks Employee
Databricks Employee

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now