我有运行在Azure ml工作区中的ML代码。同样的代码通过推理集群使用Azure MLops管道部署在Aks集群部署的vnet上。Key-vault是用来存储jupyter笔记本中访问的变量的
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.发布于 2021-07-16 03:19:05
请参阅本示例中的“在远程运行中使用密钥”部分,以访问密钥库。
使用Azure门户为VM上的Azure资源配置托管标识:https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm
https://stackoverflow.com/questions/68268886
复制相似问题