[英]AzureKeyVault cannot authenticate from databricks rstudio
We have been using rstudio provided by Azure Databricks.我们一直在使用Azure Databricks提供的rstudio。 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.
我们正在尝试使用 AzureKeyVault 库并从 Azure 中的 Key Vault 调用机密和密钥。当我从本地 rstudio 运行它时它工作正常但当我从数据块中的 rstudio 调用 Keyvault 时它不起作用。
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???
有没有人尝试从数据块 rstudio 验证密钥库???
We have been trying this since last week自上周以来我们一直在尝试这个
Firstly, you need to create a secret scope首先,您需要创建一个秘密 scope
There DNS name is Vault URI in Key vault (In Creating Scope). DNS 名称是 Key vault 中的 Vault URI(在创建范围中)。
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:参考资料取自:
问题未解决?试试以下方法:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.