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: 

How to retrieve Auto Loader client secret from Azure Key Vault?

Magnus
Contributor

I'm using Auto Loader in a SQL notebook and I would like to configure file notification mode, but I don't know how to retrieve the client secret of the service principal from Azure Key Vault. Is there any example notebook somewhere? The notebook is part of a Delta Live Tables workflow.

1 ACCEPTED SOLUTION

Accepted Solutions

Geeta1
Valued Contributor

Hi @Magnus Johannesson​ , you must use the Secrets utility (dbutils.secrets) in a notebook or job to read a secret.

https://learn.microsoft.com/en-us/azure/databricks/dev-tools/databricks-utils#dbutils-secrets

Hope it helps!

View solution in original post

3 REPLIES 3

Geeta1
Valued Contributor

Hi @Magnus Johannesson​ , you must use the Secrets utility (dbutils.secrets) in a notebook or job to read a secret.

https://learn.microsoft.com/en-us/azure/databricks/dev-tools/databricks-utils#dbutils-secrets

Hope it helps!

Thanks @Geeta Sai Boddu​! It worked when I converted the notebook to Python and used the Secrets utility. I was hoping that it could be done in a SQL notebook, but maybe that's not supported.

Geeta1
Valued Contributor

Hey @Magnus Johannesson​ , great! Yeah, I don't think we can do it using SQL.

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!