-1

I did my part of RnD and could not find Azure Powershell command remove IP restrictions on App service. Can someone help me out here plz.

Joy Wang
  • 39,905
  • 3
  • 30
  • 54
ATMK4MSFT
  • 7
  • 2
  • Any update? If my reply solved your issue, please mark it as answer. If not, please show me the error, thanks. – Joy Wang Jun 20 '18 at 07:07

1 Answers1

4

Try the command below, it works fine on my side.

$r = Get-AzureRmResource -ResourceGroupName "yourresourcegroup" -ResourceType Microsoft.Web/sites/config -ResourceName yourappservicename/web -ApiVersion 2016-08-01
$p = $r.Properties
$p.ipSecurityRestrictions = @()
Set-AzureRmResource -ResourceGroupName  "yourresourcegroup" -ResourceType Microsoft.Web/sites/config -ResourceName yourappservicename/web -ApiVersion 2016-08-01 -PropertyObject $p

enter image description here

Joy Wang
  • 39,905
  • 3
  • 30
  • 54