question

MilenDenev-0037 avatar image
0 Votes"
MilenDenev-0037 asked sikumars commented

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

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-networkazure-key-vaultazure-firewall
keyvault.jpg (204.3 KiB)
keyvault2.jpg (86.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for reaching out.

I am working on this thread, will update you with my findings. Thanks.

1 Vote 1 ·

1 Answer

sikumars avatar image
0 Votes"
sikumars answered sikumars commented

Hello @MilenDenev-0037,

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.


image.png (83.1 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I confirm that it works as expected. Thank you for your responce.

1 Vote 1 ·

Thanks for leveraging Microsoft Q&A forum.

0 Votes 0 ·