Route table with routes
{"type": "microsoft.network/routetables", "apiversion": "2021-02-01", "name": "[parameters('routetablename')]", "location": "[parameters('location')]", "properties": {"copy": [{"name": "routes", "count": "[length(parameters('routes'))]", "input": {"name": "[parameters('routes')[copyindex('routes')].name]", "properties": {"addressprefix": "[parameters('routes')[copyindex('routes')].addressprefix]", "hasbgpoverride": "[if(contains(parameters('routes')[copyindex('routes')], "hasbgpoverride'), parameters('routes')[copyindex('routes')].hasbgpoverride, null())]", "nexthopipaddress": "[if(contains(parameters('routes')[copyindex('routes')], "nexthopipaddress'), parameters('routes')[copyindex('routes')].nexthopipaddress, null())]", "nexthoptype": "[parameters('routes')[copyindex('routes')].nexthoptype]"}}}], "disablebgproutepropagation": "[parameters('disablebgproutepropagation')]"}} 