Azure Power Shell命令删除对应用程序服务的IP限制 [英] Azure power shell command to remove IP restrictions on App service

本文介绍了Azure Power Shell命令删除对应用程序服务的IP限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完成了RnD的工作,找不到Azure Powershell命令删除了对应用程序服务的IP限制。

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.

推荐答案

请尝试以下命令,它对我而言很好。

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

这篇关于Azure Power Shell命令删除对应用程序服务的IP限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆