Using Azure Key Vault secrets in Azure Databricks
In this recipe, you will learn how to use the secrets stored in Azure Key Vault in an Azure Databricks notebook. You can store information such as storage account keys or SQL Database passwords in Azure Key Vault as secrets, ensuring sensitive information is not exposed.
Getting ready
To use Azure Key Vault secrets in Databricks notebooks, we must create a secret scope in Databricks. The following steps will show you how to create a secret scope in Azure Databricks:
- Open Databricks and create a scope URL called
<Databricks URL>/#secrets/createScope
. You can find the Databricks URL on the Azure Key Vault Overview page. The following screenshot shows the Databricks URL. The secret scope URL will be similar to https://xxxxxx.azuredatabricks.net/#secrets/createScope: - Once you have opened the Secret scope URL, provide any name for your scope. Manage Principal can be either...