Guest User

Untitled

a guest
Jul 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.90 KB | None | 0 0
  1. {
  2. "apiVersion": "[variables('lbApiVersion')]",
  3. "type": "Microsoft.Network/loadBalancers",
  4. "name": "[concat('LB','-', parameters('clusterName'),'-',variables('vmNodeType0Name'))]",
  5. "location": "[variables('location')]",
  6. "dependsOn": [
  7. "[concat('Microsoft.Network/publicIPAddresses/',concat(variables('lbIPName'),'-','0'))]"
  8. ],
  9. "properties": {
  10. "frontendIPConfigurations": [
  11. {
  12. "name": "LoadBalancerIPConfig",
  13. "properties": {
  14. "publicIPAddress": {
  15. "id": "[resourceId('Microsoft.Network/publicIPAddresses',concat(variables('lbIPName'),'-','0'))]"
  16. }
  17. }
  18. }
  19. ],
  20. "backendAddressPools": [
  21. {
  22. "name": "LoadBalancerBEAddressPool",
  23. "properties": {}
  24. }
  25. ],
  26. "loadBalancingRules": [
  27. {
  28. "name": "LBRule",
  29. "properties": {
  30. "backendAddressPool": {
  31. "id": "[variables('lbPoolID0')]"
  32. },
  33. "backendPort": "[variables('nt0fabricTcpGatewayPort')]",
  34. "enableFloatingIP": "false",
  35. "frontendIPConfiguration": {
  36. "id": "[variables('lbIPConfig0')]"
  37. },
  38. "frontendPort": "[variables('nt0fabricTcpGatewayPort')]",
  39. "idleTimeoutInMinutes": "5",
  40. "probe": {
  41. "id": "[variables('lbProbeID0')]"
  42. },
  43. "protocol": "tcp"
  44. }
  45. },
  46. {
  47. "name": "LBHttpRule",
  48. "properties": {
  49. "backendAddressPool": {
  50. "id": "[variables('lbPoolID0')]"
  51. },
  52. "backendPort": "[variables('nt0fabricHttpGatewayPort')]",
  53. "enableFloatingIP": "false",
  54. "frontendIPConfiguration": {
  55. "id": "[variables('lbIPConfig0')]"
  56. },
  57. "frontendPort": "[variables('nt0fabricHttpGatewayPort')]",
  58. "idleTimeoutInMinutes": "5",
  59. "probe": {
  60. "id": "[variables('lbHttpProbeID0')]"
  61. },
  62. "protocol": "tcp"
  63. }
  64. },
  65. {
  66. "name": "AppPortLBRule1",
  67. "properties": {
  68. "backendAddressPool": {
  69. "id": "[variables('lbPoolID0')]"
  70. },
  71. "backendPort": "[parameters('loadBalancedAppPort1')]",
  72. "enableFloatingIP": "false",
  73. "frontendIPConfiguration": {
  74. "id": "[variables('lbIPConfig0')]"
  75. },
  76. "frontendPort": "[parameters('loadBalancedAppPort1')]",
  77. "idleTimeoutInMinutes": "5",
  78. "probe": {
  79. "id": "[concat(variables('lbID0'),'/probes/AppPortProbe1')]"
  80. },
  81. "protocol": "tcp"
  82. }
  83. },
  84. {
  85. "name": "AppPortLBRule2",
  86. "properties": {
  87. "backendAddressPool": {
  88. "id": "[variables('lbPoolID0')]"
  89. },
  90. "backendPort": "[parameters('loadBalancedAppPort2')]",
  91. "enableFloatingIP": "false",
  92. "frontendIPConfiguration": {
  93. "id": "[variables('lbIPConfig0')]"
  94. },
  95. "frontendPort": "[parameters('loadBalancedAppPort2')]",
  96. "idleTimeoutInMinutes": "5",
  97. "probe": {
  98. "id": "[concat(variables('lbID0'),'/probes/AppPortProbe2')]"
  99. },
  100. "protocol": "tcp"
  101. }
  102. }
  103. ],
  104. "probes": [
  105. {
  106. "name": "FabricGatewayProbe",
  107. "properties": {
  108. "intervalInSeconds": 5,
  109. "numberOfProbes": 2,
  110. "port": "[variables('nt0fabricTcpGatewayPort')]",
  111. "protocol": "tcp"
  112. }
  113. },
  114. {
  115. "name": "FabricHttpGatewayProbe",
  116. "properties": {
  117. "intervalInSeconds": 5,
  118. "numberOfProbes": 2,
  119. "port": "[variables('nt0fabricHttpGatewayPort')]",
  120. "protocol": "tcp"
  121. }
  122. },
  123. {
  124. "name": "AppPortProbe1",
  125. "properties": {
  126. "intervalInSeconds": 5,
  127. "numberOfProbes": 2,
  128. "port": "[parameters('loadBalancedAppPort1')]",
  129. "protocol": "tcp"
  130. }
  131. },
  132. {
  133. "name": "AppPortProbe2",
  134. "properties": {
  135. "intervalInSeconds": 5,
  136. "numberOfProbes": 2,
  137. "port": "[parameters('loadBalancedAppPort2')]",
  138. "protocol": "tcp"
  139. }
  140. }
  141. ],
  142. "inboundNatPools": [
  143. {
  144. "name": "LoadBalancerBEAddressNatPool",
  145. "properties": {
  146. "backendPort": "3389",
  147. "frontendIPConfiguration": {
  148. "id": "[variables('lbIPConfig0')]"
  149. },
  150. "frontendPortRangeEnd": "4500",
  151. "frontendPortRangeStart": "3389",
  152. "protocol": "tcp"
  153. }
  154. }
  155. ]
  156. },
  157. "tags": {
  158. "resourceType": "Service Fabric",
  159. "clusterName": "[parameters('clusterName')]"
  160. }
  161. },
Add Comment
Please, Sign In to add comment