简体   繁体   English

从 Azure 函数访问 Azure 密钥库时访问被拒绝

[英]Access Denied when accessing Azure Key vault from Azure Functions

My requirement is to use the Secret keys which are stored in Azure Key vault, use the application configuration setting of Azure Function to get the Key, eg.@Microsoft.KeyVault(SecretUri=)我的要求是使用存储在 Azure 密钥库中的密钥,使用 Azure Function 的应用程序配置设置来获取 KeyVault,例如。

I get AccessToKeyVaultDenied Status in Azure Function, what permission should i provide for the function to fetch keys from vault.我在 Azure Function 中获得 AccessToKeyVaultDenied 状态,我应该为 function 提供什么权限以从保险库中获取密钥。

You need to enable the Get secret permission on this policy.您需要为此策略启用Get机密权限。

There is the doc about granting your app access to Key Vault.有关于授予您的应用访问 Key Vault 的文档

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM