Share via

Adding Azure Key Vault connected service inside visual studio will keep showing “Verifying that your application will have access to the key vault”

john john 986 Reputation points
Apr 26, 2021, 10:41 PM

I want to add a key vault connected service inside visual studio, but when i do so i keep receiving this screen:-

91461-dep.png

and nothing will be added to my project? any advice?

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,350 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,676 Reputation points
    Apr 27, 2021, 11:57 AM

    Hello @john john ,

    Thanks for reaching out.

    There are two different Permission model available in Azure Key Vault, you can verify this from Access policies page in Key vaults. Therefore, please refer below steps depends on Permission model is already assigned:

    • Vault access policy
    • Azure role-based access control

    91680-image.png

    Permission Model: Azure role-based access control

    If permission model is set to "Azure role-based access control", then navigate to the azure Key vault in the portal -> Access control (IAM) -> add an RBAC role e.g. Key Vault Administrator to your user account (here is list of RBAC available role )

    91648-image.png

    Note: Key Vault Contributor/Owner role is for management plane operations to manage key vaults. It does not allow access to keys, secrets and certificates

    (OR)

    Permission Model: Vault access policy

    If permission model is set to "Vault access policy", then navigate to the azure Key vault in the portal -> Access policies -> add Access Policy -> assign appropriate permission manually or by choosing existing template e.g. Key, Secret, & Certificate Management to your your user account (Principal).

    91704-image.png

    Hope this helps.

    To learn more about how authentication works with Azure Key vault, refer : https://learn.microsoft.com/en-us/azure/key-vault/general/authentication


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

    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.