【问题标题】:Azure power shell command to remove IP restrictions on App serviceAzure powershell 命令删除 App 服务的 IP 限制
【发布时间】:2018-11-15 20:18:06
【问题描述】:

我完成了 RnD 的工作,但找不到 Azure Powershell 命令删除应用服务的 IP 限制。有人可以帮我看看吗?

【问题讨论】:

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

标签: azure powershell azure-powershell azure-app-service-envrmnt azure-application-gateway


【解决方案1】:

试试下面的命令,对我来说效果很好。

$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

【讨论】:

    猜你喜欢
    • 2021-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多