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 add 'additionallyAllowedTenants' in Databricks config or PySpark config?

soumiknow
Contributor

I have a multi-tenant Azure app. I am using this app's credentials to read ADLS container files from Databricks cluster using PySpark dataframe.

I need to set this 'additionallyAllowedTenants' flag value to '*' or a specific tenant_id of the multi-tenant app in the databricks cluster config or PySpark session.

In Python I can achieve this by executing the below line of code:

default_credential = DefaultAzureCredential(additionally_allowed_tenants=['*'])

My query is, how can I achieve the same in Databricks config or PySpark session. Any leads are appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions

soumiknow
Contributor

Update: Currently spark does not have this feature.

View solution in original post

1 REPLY 1

soumiknow
Contributor

Update: Currently spark does not have this feature.

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