Unable to add IP address to the firewall for Azure key vault

Medha Bhatt 36 Reputation points
2023-12-05T11:05:50.3566667+00:00

Hi,

I am trying to view the keys in the Azure key vault of the subscription where I have the 'Owner' & Global Admin permission. However, it keeps giving me 'not authorized to view' error.

So I tried adding my IP address ( connecting remotely from home) in the allowed IP addresses in firewall -- however it fails saying this ip address falls within Microsoft's prohibited IP addresses.

So, how do I add my home network IP address in the allowed range in the key vault's firewall?

Thank you.

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,357 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Luis Arias 7,846 Reputation points
    2023-12-05T13:36:31.9866667+00:00

    Hi Medha Bhatt ,

    You can add your public IP address to Ketvault > Networking > Firewall:

    User's image

    You can get your Ip public by below command :

    curl ifconfig.me
    

    Let me know if you need additional assisstance.

    Luis Arias

    0 comments No comments

  2. JamesTran-MSFT 36,786 Reputation points Microsoft Employee
    2023-12-05T19:53:07.23+00:00

    @Medha Bhatt

    Thank you for your post!

    Error Message:

    Not authorized to view

    I understand that you're trying to view the Keys within your Key Vault but are running into the above error message and even after adding your IP address to your Vault's Firewall, you're still having issues. To hopefully help point you in the right direction, I'll share some troubleshooting steps below.

    Key Vault Firewall:
    To add your home network / IP address to your Vault's Firewall, you can use the browser's Developer Tool (F12) or you can Capture a Fiddler Trace to see what IP address is being blocked.

    • Once you figure out what IP is being blocked, you can then add it your KV Firewall as 12.345.678.901 or 12.345.678.0/24

    User's image

    Additional Links

    If you're still having problems, can you share your full error message along with any screenshots so I can gain a better understanding of your issue?

    I hope this helps!

    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.

    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.