I don't have the permission to view the contents in my own azure key vault

Sangram Mohanty 56 Reputation points
2023-11-11T15:35:37.2633333+00:00

Today, I created azure key vault. However I don't have the permission to see the contents of keys and secrets created by me. I have assigned myself "owner" role. Still no luck. MaY I know why I am getting forbidden from access my own resources in azure key vault. How to apply a resolution to this ?

User's image

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,411 questions
{count} votes

Accepted answer
  1. Sandeep G-MSFT 20,781 Reputation points Microsoft Employee
    2023-12-18T06:49:27.1133333+00:00

    @Sangram Mohanty

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "[The question author cannot accept their own answer. They can only accept answers by others] (https://docs.microsoft.com/en-us/answers/support/accepted-answers#why-only-one-accepted-answer)**)", I'll repost your solution in case you'd like to "[Accept] (https://docs.microsoft.com/en-us/answers/support/accepted-answers#accepted-answer-in-a-question-thread)**)" the answer.

    Solution:

    You had to configure the policies within key vault in "access policies". For key vault all the permissions are configured in access policies.

    Below article explains about the access policies in Azure Key Vault,

    https://learn.microsoft.com/en-us/azure/key-vault/general/assign-access-policy?tabs=azure-portal

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Konstantinos Passadis 19,496 Reputation points MVP
    2023-11-11T16:18:51.3833333+00:00

    Hello @Sangram Mohanty !

    You must add your user inti RBAC Role of Key Vault

    Azure RBAC has several Azure built-in roles that you can assign to users, groups, service principals, and managed identities. If the built-in roles don't meet the specific needs of your organization, you can create your own Azure custom roles.

    Key Vault built-in roles for keys, certificates, and secrets access management:

    Key Vault Administrator
    
    Key Vault Reader
    
    Key Vault Certificates Officer
    
    Key Vault Crypto Officer
    
    Key Vault Crypto User
    
    Key Vault Crypto Service Encryption User
    
    Key Vault Secrets Officer
    
    Key Vault Secrets User
    

    Go to IAM from Azure Key Vault , Add and select the user and the Role

    https://learn.microsoft.com/en-us/azure/key-vault/general/rbac-migration


    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


  2. Sangram Mohanty 56 Reputation points
    2023-12-18T05:52:53.96+00:00

    @JamesTran-MSFT , @Konstantinos Passadis , @Sandeep G-MSFT ,

    I resolved this problem using "vault access policy" available under access configuration instead of using "RBAC". In this problem "RBAC" doesn't require as you require list permission that only available under "vault access policy".

    User's image

    Not sure why RBAC policy works but the other way round works.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.