{ "location": "{{ ip.location }}", "properties": { "publicIPAllocationMethod": "{{ ip.allocation_method | default('Static') }}", "idleTimeoutInMinutes": {{ ip.idletimeout | default(5) }}, "publicIPAddressVersion": "{{ ip.version | default('IPv4') }}", {% if ip.ddos is defined %} "ddosSettings": { {% if ip.ddos.CustomPolicyid is defined %} "ddosCustomPolicy": { "id": "{{ ip.ddosCustomPolicyid }}" }, {% endif %} "protectedIP": "{{ ip.ddos.enableprotection | default(false) }}", {% if ip.ddos.enableprotection is defined and ip.ddos.enableprotection %} "protectionCoverage": "{{ ip.ddos.protectionCoverage | default('Standard') }}", {% endif %} }, {% endif %} "deleteOption": "{{ ip.deleteOption | default('Detach') }}", {% if ip.dns is defined %} "dnsSettings": { "domainNameLabel": "{{ ip.dns.label | default('') }}", "fqdn": "{{ ip.dns.fqdn | default('') }}", "reverseFqdn": "{{ ip.dns.reverse | default('') }}" } {% endif %} }, "sku": { "name": "{{ ip.sku | default('Standard') }}", "tier": "{{ ip.tier | default('Regional') }}" }, "zones": [ {% for zone in ip.zones | default([]) %} "{{ zone }}", {% endfor %} ] }