用于APIM和App Service依赖关系的ARM模板

时间:2020-02-17 14:41:54

标签: azure arm-template

对于ARM来说相对较新,但是我有一个问题,我正在为API管理创建模板,但是在创建实例之后,我想将该APIM IP添加到App Service的允许点列表中网络限制。 我将如何以一种将APIM添加到“允许的网络的应用服务列表”中的方式来构造它。我的APIM还引用了应用服务。我正在使用Azure DevOps进行部署。

    "resources": [
        {
            "type": "Microsoft.Web/sites/config",
            ...
            "properties": {
                "ipSecurityRestrictions": [
                    {
                        "ipAddress": "51.XX.XX.XX/32",
                        "action": "Allow",
                        "tag": "Default",
                        "priority": 100,
                        "name": "APIM-Instance",
                        "description": "APIM-Instance"
                    },
                    ...

1 个答案:

答案 0 :(得分:0)

这是正确的方法-

"resources": [
    {
        "type": "Microsoft.Web/sites",
        ...
        "properties": {
          "siteConfig" {
            "ipSecurityRestrictions": [
                {
                    "ipAddress": "51.XX.XX.XX/32",
                    "action": "Allow",
                    "tag": "Default",
                    "priority": 100,
                    "name": "APIM-Instance",
                    "description": "APIM-Instance"
                },
                ...
             }
             ....
相关问题