【问题标题】:Azure Automation: Get-AzKeyVaultKey : Operation returned an invalid status code 'ForbiddenAzure 自动化:Get-AzKeyVaultKey:操作返回了无效的状态代码“禁止”
【发布时间】:2020-09-03 05:51:19
【问题描述】:

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

Get-AzKeyVaultKey : 操作返回无效状态代码“禁止”

除了 Contributor 之外,我是否缺少权限集?

【问题讨论】:

    标签: azure azure-keyvault azure-automation


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-11-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-02
      • 1970-01-01
      • 2021-03-08
      相关资源
      最近更新 更多