gpt4 book ai didi

Azure 自动化 : Get-AzKeyVaultKey : Operation returned an invalid status code 'Forbidden

转载 作者:行者123 更新时间:2023-12-03 01:29:19 26 4
gpt4 key购买 nike

我正在使用 Azure 自动化从 KeyVault 检索证书列表。 Azure 自动化的 RunAs 帐户是在 KeyVault 中具有贡献者权限的用户,但是当我从 Azure 自动化到同一订阅中的 KeyVault 执行 PowerShell 时,它会显示:

Get-AzKeyVaultKey : Operation returned an invalid status code 'Forbidden'

除了贡献者之外,我还缺少哪些权限集吗?

最佳答案

您需要为配置为 RunAs 帐户的服务主体分配 Key Vault 的访问策略,以便至少对 key 进行“获取”。对 Azure Key Vault 资源的 RBAC 权限不够,需要作为访问策略单独管理

关于Azure 自动化 : Get-AzKeyVaultKey : Operation returned an invalid status code 'Forbidden,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63713900/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com