config/workload/hlk/jsons/loadBalancers/workload_vnet_1_subnet_1_lb_1.json

{
    "resourceId": "workload_vnet_1_subnet_1_lb_1",
    "resourceMetadata": {
        "client": "TurnKeySdn"
    },
    "properties": {
        "frontendIPConfigurations": [
            {
                "resourceId": "fe-workload_vnet_1_subnet_1_lb_1",
                "properties": {
                    "privateIPAddress": "192.168.2.101",
                    "privateIPAllocationMethod": "Static",
                    "subnet": {
                        "resourceRef": "/logicalnetworks/PublicVIP/subnets/192.168.2.0_24"
                    }
                }
            }
        ],
        "backendAddressPools": [
            {
                "resourceId": "be-workload_vnet_1_subnet_1_lb_1"
            },
            {
                "resourceId": "snat"
            }
        ],
        "loadBalancingRules": [
            {
                "resourceId": "workload_vnet_1_subnet_1_lb_1-80-80",
                   "properties": {
                       "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 180,
                    "backendPort": 180,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4,
                    "backendAddressPool": {
                        "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/backendAddressPools/be-workload_vnet_1_subnet_1_lb_1"
                    },
                    "loadDistribution": "Default"
                }
            },
            {
                "resourceId": "workload_vnet_1_subnet_1_lb_1-8080-81",
                   "properties": {
                       "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 8080,
                    "backendPort": 81,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4,
                    "backendAddressPool": {
                        "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/backendAddressPools/be-workload_vnet_1_subnet_1_lb_1"
                    },
                    "loadDistribution": "Default"
                }
            },
            {
                "resourceId": "workload_vnet_1_subnet_1_lb_1-22-22",
                   "properties": {
                       "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 22,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4,
                    "backendAddressPool": {
                        "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/backendAddressPools/be-workload_vnet_1_subnet_1_lb_1"
                    },
                    "loadDistribution": "Default"
                }
            }
        ],
        "probes": [
        ],
        "inboundNatRules": [
            {
                "resourceId": "65023",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65023,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65024",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65024,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65025",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65025,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65026",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65026,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65027",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65027,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            },
            {
                "resourceId": "65028",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "Tcp",
                    "enableTcpReset": false,
                    "frontendPort": 65028,
                    "backendPort": 22,
                    "enableFloatingIP": false,
                    "idleTimeoutInMinutes": 4
                }
            }
        ],
        "outboundNatRules": [
            {
                "resourceId": "snatRule",
                "properties": {
                    "frontendIPConfigurations": [
                        {
                            "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/frontendIPConfigurations/fe-workload_vnet_1_subnet_1_lb_1"
                        }
                    ],
                    "protocol": "All",
                    "enableTcpReset": false,
                    "backendAddressPool": {
                        "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/backendAddressPools/snat"
                    }
                }
            }
        ]
    }
}