azureazure-keyvaultazure-secrets

Key Vault Secret issue - Firewall is turned on and your client IP address is not authorized to access this key vault


I am new to Azure Key Vault, trying to add Secrets but it keeps the following error. enter image description here

Firewall is turned on and your client IP address is not authorized to access this key vault. Can someone enlighten me on how to achieve this goal? I am using admin account on this subscription. Networking settings below: enter image description here

enter image description here


Solution

  • The error occurs if you missed adding your client IP address under Firewall exceptions when key vault is configured with allow access from specific networks and IP addresses option like this:

    enter image description here

    Initially, I too got same error when I tried to add secret without adding my public IP address under Firewall exception:

    enter image description here

    To resolve the error, make sure to add your public IP address under Firewall exception like this:

    enter image description here

    In addition to that, check whether signed-in user is assigned with Key Vault Administrator role or not and make sure to assign when key vault is configured to use RBAC access:

    enter image description here

    When I tried to create secret now after adding public IP address to Firewall exception and RBAC role, it added successfully like this:

    enter image description here