Azure密钥保管库任务 - 拒绝权限 [英] Azure Key Vault Task - Permission Denied

查看:74
本文介绍了Azure密钥保管库任务 - 拒绝权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在构建定义中添加了一个任务,以从指定的密钥库中检索所有机密。当构建运行时,我得到错误:

I've added a task to my build definition to retrieve all secrets from a specified key vault. When the build runs I get the error:

获取秘密失败。错误:访问被拒绝。

在Azure门户中,我已向我的服务主体添加了一个访问策略,以便"获取"。和"列表"秘密权限

In the Azure Portal I've added an Access Policy to my Service Principal to have "Get" and "List" Secret Permissions

推荐答案

嗨Lian123,

Hi Lian123,

您使用的是哪个任务?什么是构建服务帐户?将构建服务帐户更改为您的帐户,然后重试。

Which task you are used? What’s the build service account? Change build service account to your account and try again.

问候

Starain

这篇关于Azure密钥保管库任务 - 拒绝权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆