【问题标题】:Fetching dynamic IP in ARM of Application gateway in Azure在 Azure 中的应用程序网关的 ARM 中获取动态 IP
【发布时间】:2020-03-13 15:02:52
【问题描述】:

我们能否在应用程序网关分配后在输出中提取 动态 分配的公共 IP 地址,静态地址可以正常工作。

  {
            "type": "Microsoft.Network/publicIPAddresses",
            "apiVersion": "2019-04-01",
            "name": "[variables('publicIpName')]",
            "location": "[resourceGroup().location]",
            "condition": "[variables('usePublicIp')]",
            "properties": {
                "publicIPAllocationMethod": "Dynamic"
            }
        },

        "outputs": {
            "IpAddress": {
            "type": "String",
            "value": "reference(variables('publicIpName')).IpAddress]"
        }
    }

错误:

【问题讨论】:

  • 嗨 Atul,你能解决你的问题吗?

标签: azure azure-application-gateway


【解决方案1】:

github issue 解决了与您相同的问题。

有一个技巧可以解决这个问题,这个模板可以帮助你理解如何:https://github.com/Azure/azure-quickstart-templates/tree/master/201-application-gateway-webapp-iprestriction

希望这会有所帮助!

【讨论】:

  • 谢谢,有帮助,
  • 很高兴为您提供帮助!请将此标记为答案,以便对其他人也有帮助!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-07-27
  • 2020-12-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多