【问题标题】:Can you see if IP restrictions are configured for Logic Apps via Powershell?您能否查看是否通过 Powershell 为逻辑应用配置了 IP 限制?
【发布时间】:2018-09-04 16:26:47
【问题描述】:

有什么方法可以查看逻辑应用的 IP 限制?我希望能够验证运行的应用程序是否具有适当的 IP 限制。我知道没有命令可以从 powershell 配置 IP 限制,但无论如何有一些如何通过 powershell 查看它们?我可以通过资源浏览器查看,但我不确定是否有任何方法可以通过 powershell 查看它们。

【问题讨论】:

  • Azure 资源浏览器有一个 PowerShell 选项卡,当您查看显示 IP 限制的部分时,是不是为您填充了该选项卡?

标签: powershell azure azure-resource-manager azure-powershell azure-logic-apps


【解决方案1】:

$LogicAppConfig.Properties.accessControl.triggers.allowedCallerIpAddresses

【讨论】:

  • 嗨!请拨打tour。感谢您提供答案,但您是否还可以添加关于您的代码如何解决问题的说明?
【解决方案2】:

Ip restrictionsAccess Control 的一部分。您可以直接查询 azure 资源:

# Don't forget to login with Login-AzureRMAccount

# Get the resource
$myLogicApp = Get-AzureRmResource -ResourceGroupName "rg-name" -ResourceType Microsoft.Logic/workflows -ResourceName my-logic-app-name -ApiVersion 2016-06-01

# Get the ip restrictions:
$myLogicApp.Properties.accessControl.allowedCallerIpAddresses

【讨论】:

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