我在 Azure ML 工作区中运行了 ml 代码。使用 Azure MLops 管道通过推理集群部署 Aks 集群部署的 vnet 相同的代码。创建密钥库是为了存储在 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.