Azure power shell command to remove IP restrictions on App service

喜你入骨 提交于 2019-12-12 06:57:19

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/50715427/azure-power-shell-command-to-remove-ip-restrictions-on-app-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!