The key vault must have GET permissions on secret + Error While Configuring Application Gateway Listener

Taranjeet Malik 401 Reputation points
2021-09-17T05:50:36.947+00:00

Hi

I'm trying to add a Basic type listener to an Application Gateway instance. While doing so, I wish to choose an SSL Certificate stored in a Key Vault that has access policy configured to allow Get and List permissions to the user-assigned managed identity that I'm picking from the drop-down in the blade when configuring the listener through Azure portal. However, the Key Vault field is an error "The key vault must have GET permissions on secret" though I'm able to pick the required certificate from the next drop-down.

The error is quite misleading as it states that the Key Vault needs access to the secret, whereas the MS documentation states that the user-assigned managed identity needs access to the certificate / secret, which makes sense.

I have enabled Network Service Endpoint to only Application Gateway subnet to talk to Kay Vault and have added the App Gateway Subnet to allowed list of networks on Key Vault's Networking section.

Attached is the screenshot of the error.132946-key-vault-error-1.png

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,115 questions
Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
957 questions
{count} votes

Accepted answer
  1. Taranjeet Malik 401 Reputation points
    2021-09-18T02:06:48.543+00:00

    Hi @sikumars-msft just tested that in the Key Vault access policy, if in addition to the Certificate permissions, I assign Get and List permissions on the Secret permissions field, the issue gets resolved. Just so if someone else gets stuck here.

    133228-key-vault-error-resolved.png

    3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,551 Reputation points
    2021-09-20T06:35:54.177+00:00

    Glad that you were able to fix the issue and thanks for using Microsoft Q&A community.

    0 comments No comments