config/workload/loadbalancer/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": {
                    "privateIPAllocationMethod": "Dynamic",
                    "publicIPAddress": {
                                            "resourceRef": "/publicIPAddresses/lb_workload_vnet_1_subnet_1_lb_1_pb_1"
                                        }
                }
            }
        ],
        "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": 80,
                    "backendPort": 80,
                    "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",
                    "probe": {
                        "resourceRef": "/loadBalancers/workload_vnet_1_subnet_1_lb_1/probes/80-Probe"
                    }
                }
            },
            {
                "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": [
            {
                "resourceId": "80-Probe",
                "properties": {
                    "protocol": "Tcp",
                    "port": 80,
                    "intervalInSeconds": 5,
                    "numberOfProbes": 2
                }
            }
        ],
        "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"
                    }
                }
            }
        ]
    }
}