title: Azure template to create public static IP address for each virtual machine
body: <p>I using the <a href="https://github.com/Azure/azure-quickstart-templates/tree/master/CentOS-2nics-lb-cluster" rel="nofollow">CentOS-2nics-lb-cluster</a> azure template which generates a Load Balance and NAT Rule which enables a specific SSH port for each of
  the Virtual Machines it creates. </p>
  
  <p>My current ssh configuration look like</p>
  
  <pre><code>ssh admin@test01.cloudapp.azure.com -p 50000 // aka vm0
  ssh admin@test01.cloudapp.azure.com -p 50001 // aka vm1
  </code></pre>
  
  <p>In my case, i really need to create a unique hostname for each of the virtual machines</p>
  
  <pre><code>ssh admin@test01vm0.cloudapp.azure.com -p 22
  ssh admin@test01vm1.cloudapp.azure.com -p 22
  </code></pre>
  
  <p>Can someone suggest how i can change the template section below to achive this?</p>
  
  <pre><code>{
    "apiVersion": "2015-05-01-preview",
    "name": "[variables('lbName')]",
    "type": "Microsoft.Network/loadBalancers",
    "location": "[resourceGroup().location]",
    "dependsOn": [
      "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]"
    ],
    "properties": {
      "frontendIPConfigurations": [
        {
          "name": "LoadBalancerFrontEnd",
          "properties": {
            "publicIPAddress": {
              "id": "[variables('publicIPAddressID')]"
            }
          }
        }
      ],
      "backendAddressPools": [
        {
          "name": "BackendPool1"
        }
      ],
      "inboundNatRules": [
        {
          "name": "ssh0",
          "properties": {
            "frontendIPConfiguration": {
              "id": "[variables('frontEndIPConfigID')]"
            },
            "protocol": "tcp",
            "frontendPort": 50000,
            "backendPort": 22,
            "enableFloatingIP": false
          }
        },
        {
          "name": "ssh1",
          "properties": {
            "frontendIPConfiguration": {
              "id": "[variables('frontEndIPConfigID')]"
            },
            "protocol": "tcp",
            "frontendPort": 50001,
            "backendPort": 22,
            "enableFloatingIP": false
          }
        },
        {
          "name": "ssh2",
          "properties": {
            "frontendIPConfiguration": {
              "id": "[variables('frontEndIPConfigID')]"
            },
            "protocol": "tcp",
            "frontendPort": 50002,
            "backendPort": 22,
            "enableFloatingIP": false
          }
        }
      ],
      "loadBalancingRules": [
        {
          "name": "LBRule",
          "properties": {
            "frontendIPConfiguration": {
              "id": "[variables('frontEndIPConfigID')]"
            },
            "backendAddressPool": {
              "id": "[variables('lbPoolID')]"
            },
            "protocol": "tcp",
            "frontendPort": 80,
            "backendPort": 80,
            "enableFloatingIP": true,
            "idleTimeoutInMinutes": 10,
            "probe": {
              "id": "[variables('lbProbeID')]"
            }
          }
        }
      ],
  </code></pre>