简体   繁体   English

AzureKeyVault 无法从数据块进行身份验证 rstudio

[英]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:参考资料取自:

问题未解决?试试以下方法:

AzureKeyVault 无法从数据块进行身份验证 rstudio

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用数据块连接从 Windows 连接到数据块集群 - Unable to connect to databricks cluster from Windows using databricks-connect 如何使用 Databricks Data Explorer 从 Databricks 中删除表 - How to Delete Table from Databricks with Databricks Data Explorer 您不能在运行 Databricks Basic 的集群上运行笔记本作业 - You cannot run a notebook job on a cluster running Databricks Basic 为什么我无法在 Azure 中验证应用程序 - Why I cannot authenticate an app in Azure 从数据块中的 sql 服务器读取数据(pyspark) - Reading data from sql server in databricks(pyspark) 从多个数据块实例收集集群信息 - Gather cluster info from multiple databricks instances 使用 Databricks 将从 Azure 服务总线接收到的消息移动到 Azure DataLake - Moving Messages received from Azure Service Bus to Azure DataLake with Databricks 无法通过 Terraform 使用 GCP Cloud Build 对 GitHub 存储库进行身份验证 - Cannot authenticate GitHub repository with GCP Cloud Build via Terraform 从 azure 中的 Dockerfile 向私人 npm 注册表进行身份验证? - Authenticate to private npm registry from Dockerfile in azure? 我如何从 Azure Devops 自动化 Databricks 笔记本 - How do i automate Databricks notebook from Azure Devops
 
粤ICP备18138465号  © 2020-2023 STACKOOM.COM