@Don Bowden I hope you are doing well,
Welcome to Microsoft Q&A
You're trying to read/write a secret, key, or certificate in a Key Vault that uses Azure RBAC (not Access Policies), but:
- You don’t have the correct role assigned.
- The role doesn't cover the specific permission (e.g., "Get Secrets").
- How to Fix
Option 1: Assign an RBAC role with the correct scope
- Go to Azure Portal > Key Vault > Access control (IAM).
- Click “+ Add” > Add role assignment.
- Choose one of these roles depending on what you need:
-
Key Vault Reader
: Can list vault metadata but not secrets/keys. -
Key Vault Secrets User
: Can read secrets. -
Key Vault Secrets Officer
: Can read/write secrets. -
Key Vault Administrator
: Full access to secrets, keys, certs.
-
- Assign to the appropriate identity (user, group, or app).
- Click Review + assign.
Oficial Microsoft Documentations https://learn.microsoft.com/en-us/azure/key-vault/keys/about-keys-details
😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!