We have been using rstudio provided by Azure Databricks. We are trying to use AzureKeyVault library and call the secrets and keys from Key vault in Azure. It works fine when I run it from local rstudio but it doesn't work when I call the Keyvault from rstudio in databricks.
library(AzureKeyVault)
vault <- key_vault("https://mykeyvault.vault.azure.net")
We are not sure if its a databricks issue or something else?? Has anyone every tried to authenticate the keyvault from databricks rstudio ???
We have been trying this since last week
Firstly, you need to create a secret scope
There DNS name is Vault URI in Key vault (In Creating Scope).
Then execute below code:
%r
l <- as.list(dbutils.secrets.get(scope = 'rithwik', key = 'Rithwik-key'))
y <- sub("\\s+$", "", gsub('(.{1})', '\\1 ', x))
y
References taken from:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.