0

Relatively new to ARM but I have an issue, I'm creating a template for an API Management but after I create the instance, I want to add that APIM IP to be added to the list of allowed points in the App Service's Network Restrictions. How would I structure this in a way that it would add the APIM to the App Service List of Allowed Network. My APIM also references the App Service. I'm using Azure DevOps to deploy.

    "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"
                    },
                    ...
Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
Magikarp
  • 492
  • 6
  • 19

1 Answers1

0

this is the right way -

"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"
                },
                ...
             }
             ....
harry
  • 159
  • 7