如何解决如何从 ML OP 访问 Key Vault
我在 Azure ML 工作区中运行了机器学习代码。使用 Azure MLops 管道通过推理集群部署了相同的代码。 Key-Vault 用于存储在 jupyter notebook 中访问的变量
While testing the endpoint from Postman getting "managedidentitycredential.get_token failed: managedidentitycredential authentication unavailable,no managed identity endpoint found" error.
In code,trying to access key-vault variables by the below method.
credentials = DefaultAzureCredential()
client = SecretClient(vault_url="url",credential=credentials)
access_key = client.get_secret("KEY").value
Please help,how to access key vault here?
Thanks.
解决方法
请参阅本示例中的“在远程运行中使用机密”部分以访问密钥保管库。
使用 Azure 门户为 VM 上的 Azure 资源配置托管标识: https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。