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
Visitor

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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group