Azure power shell命令删除应用程序服务的IP限制

Azure power shell命令删除应用程序服务的IP限制,azure,powershell,azure-powershell,azure-app-service-envrmnt,azure-application-gateway,Azure,Powershell,Azure Powershell,Azure App Service Envrmnt,Azure Application Gateway,我做了RnD的一部分,但找不到Azure Powershell命令删除应用程序服务的IP限制。请有人帮我一下。试试下面的命令,在我这边效果很好 $r = Get-AzureRmResource -ResourceGroupName "yourresourcegroup" -ResourceType Microsoft.Web/sites/config -ResourceName yourappservicename/web -ApiVersion 2016-08-01 $p = $r.Prope

我做了RnD的一部分,但找不到Azure Powershell命令删除应用程序服务的IP限制。请有人帮我一下。

试试下面的命令,在我这边效果很好

$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

有更新吗?如果我的回复解决了您的问题,请将其标记为答案。如果没有,请告诉我错误,谢谢。