cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use Managed Identity to create mount point for ADLS Gen2

srikanth2
New Contributor II

Hi,

We would like to use Azure Managed Identity to create mount point to read/write data from/to ADLS Gen2?

We are also using following code snippet to use MSI authentication to read data from ADLS Gen2 but it is giving error,

storage_account_name = "<<mystorageaccount>>"
storage_endpoint = "abfss://{}/".format(storage_account_name)
spark.conf.set("fs.azure.account.auth.type.{}.dfs.core.windows.net".format(storage_account_name), "MSI")
spark.conf.set("fs.azure.account.oauth.provider.type.{}.dfs.core.windows.net".format(storage_account_name), "org.apache.hadoop.fs.azurebfs.oauth2.MSICredentialProvider")
Error:
"No enum constant shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.services.AuthType.MSI"
 
It looks like MSI support is not enabled. Can we use Managed Identity(User Assigned Managed Identity) to read/write from ADLS Gen2 inside notebook, not through unified catalog.
 
Thanks
 
2 REPLIES 2

Walter_C
Valued Contributor III
Valued Contributor III

It seems that using User Assigned Managed Identity to read/write from ADLS Gen2 inside a notebook is not directly supported at the moment.

srikanth2
New Contributor II

Thanks for the Reply Walter.

Can I use Subject Name + Issuer Authentication inside the Databricks notebook? Is this supported?

Can I use Federated Identity Credential inside the notebook?

If yes, can you please refer me right pointers.

Thanks

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!