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.
Asked
Active
Viewed 555 times
-1
-
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 Answers
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

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