0

I have a lot of IP addresses to add and remove and doing it via the portal is painful (well, boring).

Can I use the CLI to add/remove IP addresses to/from a web app?

BanksySan
  • 27,362
  • 33
  • 117
  • 216

3 Answers3

1

I have a lot of IP addresses to add and remove and doing it via the portal is painful (well, boring).

We could edit the ipSecurityRestrictions with CLI command or azure resource(https://resources.azure.com/). You also could the CLI command from it directly.

az resource update --id /subscriptions/{subscriptionId}/resourceGroups/{resourcegroup}/providers/Microsoft.Web/sites/{websitename}/config/web --api-version 2016-08-01 --set properties.key=value

enter image description here

I did a demo with powershell command before, you could refer to another SO thread.

Tom Sun - MSFT
  • 24,161
  • 3
  • 30
  • 47
0

Not possible yet. Microsoft has been promising this for a while.

https://feedback.azure.com/forums/169385-web-apps/suggestions/32151361-allow-azure-app-service-ip-restriction-configurati

Bruno Faria
  • 5,219
  • 3
  • 24
  • 27
0

We don't have any updates to share yet on timeline, but will update the User Voice feature request when there is anything to share.

Oded Dvoskin
  • 220
  • 1
  • 4