Programmatically updating IP address ranges of an Azure Key Vault Firewall it's not working (using Azure REST API)

Milen Denev 91 Reputation points
2021-11-06T12:34:24.65+00:00

146993-keyvault.jpg

147017-keyvault2.jpg

After following completely the documentation, after many tries and revisions of the JSON Body, after getting Status Code "OK" / 200, it's simply impossible to change the IP Addresses of an Azure Key Vault (using the REST API). Please check the screenshots.

The screenshots above shows the code behind the request and the result after the request is executed.
Then I get to the Azure Portal, in the Networking section, nothing has change.
What's going wrong here? I can't figure it out.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
1,174 questions
Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
333 questions
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.
662 questions
{count} votes

Accepted answer
  1. Siva-kumar-selvaraj 15,116 Reputation points
    2021-11-10T13:52:31.46+00:00

    Hello @Milen Denev ,

    Thank you for your time and patience throughout this issue.

    I did repro on my lab and was able to update IP address ranges successfully using Azure Key Vault REST API. Here is outcome from my repro:

    148169-image.png

    JSON Body which I used in my repro, if I just pass "ipRules" under "networkAcls" section then I see IP address being updated properly so could you please verify if you are sending "ipRules" under "networkAcls" section as shown below?

    {  
     "properties": {  
     "networkAcls": {  
     "ipRules": [  
     {  
     "value": "117.98.185.0/24"  
     }  
     ]  
      
     }  
     }  
    }  
    

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


0 additional answers

Sort by: Most helpful