Unable to retrieve Key Vault even though public IP address is whitelisted

Varsha Shintre 40 Reputation points Microsoft Employee
2023-06-22T06:31:44.6233333+00:00

I have key Vault with IP address whitelisting enabled. i have access policy configured and IP address whitelisted. Still unable to access secrets. with below warning and message

"Firewall is turned on and your client IP address is not authorized to access this key vault. "

and

You are unauthorized to view these contents.

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.
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 37,211 Reputation points Microsoft Employee Moderator
    2023-06-30T20:52:36.18+00:00

    @Varsha Shintre

    Thank you for your post!

    Error Message:
    Firewall is turned on and your client IP address is not authorized to access this key vault.... You are unauthorized to view these contents.

    I understand that you configured your Key Vault's Firewall to allow public access from a specific VNET and IP address but are having issues accessing your Secrets, even after correctly configuring your Access Policies and adding your IP address to the Firewall. To hopefully point you in the right direction or resolve your issue, I'll share some troubleshooting steps below.

    Troubleshooting:

    Since you're running into a Key Vault Firewall related error message, you can use your browser's Developer Tool (F12) or you can Capture a Fiddler Trace to see what IP address is being blocked. Once you find the IP address being blocked, you can then add it your KV Firewall as 12.345.678.901 or 12.345.678.0/24

    User's image

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.


    If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.

    4 people found this answer helpful.

Your answer

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