# Deploy failing creating APIM API - ipFilters addressRange is an invalid child element

**URL:** <https://forum.serverless.com/t/deploy-failing-creating-apim-api-ipfilters-addressrange-is-an-invalid-child-element/12836>\
**Category:** Serverless Framework\
**Tags:** azure\
**Created:** [October 12, 2020, 4:24pm UTC](https://forum.serverless.com/t/deploy-failing-creating-apim-api-ipfilters-addressrange-is-an-invalid-child-element/12836 "2020-10-12T16:24:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddudenhefer](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@ddudenhefer](https://forum.serverless.com/u/ddudenhefer)\
**Post date:** [October 12, 2020, 4:24pm UTC](https://forum.serverless.com/t/deploy-failing-creating-apim-api-ipfilters-addressrange-is-an-invalid-child-element/12836/1 "2020-10-12T16:24:26Z")

</div>

Configuring APIM to allow access based on ip range does not appear to recognize addressRange as a valid option. The addresses element is properly transformed to in the resulting XML. I followed an example, which configured the yml as follows:

# IP Validation APIM policies

```
ipFilters:
  - action: allow
    addresses: # List of allowed IP addresses
      - 1.1.1.1
      - 2.2.2.2
    addressRange: # Also optionally support range of IP addresses
      from: 1.1.1.1
      to: 2.2.2.2
  - action: forbid
    addresses: # List of forbidden IP addresses
      - 3.3.3.3
      - 4.4.4.4
    addressRange: # Also optionally support range of IP addresses
      from: 3.3.3.3
      to: 4.4.4.4

```

============================================================

Serverless: Error creating APIM API  
Serverless: {  
“code”: “ValidationError”,  
“message”: “One or more fields contain incorrect values:”,  
“details”: [  
{  
“code”: “ValidationError”,  
“message”: “Error in element ‘ip-filter’ on line 20, column 6: The element ‘ip-filter’ has invalid child element ‘addressRange’. List of possible elements expected: ‘address, address-range’.”,  
“target”: “ip-filter”  
}  
]  
}

Your Environment Information ---------------------------  
Operating System: win32  
Node Version: 12.18.4  
Framework Version: 2.6.0  
Plugin Version: 4.0.4  
SDK Version: 2.3.2  
Components Version: 3.2.1
