Quantcast
Viewing all articles
Browse latest Browse all 6513

arm template and load balancer

Hello,

I am attempting to configure  an arm template to deploy a load balancer and configure it to point to a single VM.  The deployment works - meaning there are not any errors but my deployment does not configure the VM for the backend pool but it does create the pool name.

Also, the arm template successfully creates a rule, configures the rule with front end IP address, service, port but just like the backend pool the associated to is blank. My are template is below

I used resource explorer to attempt to find out what I am missing but I do not see it.

"$schema":"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",

 "contentVersion":"1.0.0.0",

 "parameters": {

   "name": {

     "type":"string",

     "defaultValue""app501-iam-qa-sql-lb-01"

    },

   "location": {

     "type":"string"

    },

   "sku": {

     "type":"string"

    },

   "subnetId": {

     "type":"string"

    },

   "privateIPAllocationMethod": {

     "type":"string"

    }

  },

 "resources": [

    {

     "apiVersion":"2018-08-01",

     "name":"[parameters('name')]",     

      "type":"Microsoft.Network/loadBalancers",

     "location":"[parameters('location')]",

     "sku": {

       "name":"[parameters('sku')]"

      },

     "dependsOn": [],

     "properties": {

       "frontendIPConfigurations": [

          {

           "name":"LoadBalancerFrontEnd",

           "properties": {

             "privateIPAllocationMethod":"[parameters('privateIPAllocationMethod')]",

             "subnet": {

               "id":"[parameters('subnetId')]"

              }

            }

          }

        ],

       "backendAddressPools": [

          {

           "name":"sqliampool",

           "properties": {

             "provisioningState":"Succeeded",

             "backendIPConfigurations": [

                {

                 "id":"/subscriptions/7450e323-8ffc-461f-9b0a-cdc0e035f26b/resourceGroups/app501-iam-qa-sql-rg/providers/Microsoft.Network/networkInterfaces/azg4iam1sql01465/ipConfigurations/ipconfig1"

                }

              ]

            },

           "type":"Microsoft.Network/loadBalancers/backendAddressPools"

          }

        ],

       "loadBalancingRules": [],

       "probes": [

          {

           "name":"probe1433",

           "properties": {

             "protocol":"Tcp",

             "port": 1433,

             "intervalInSeconds": 5,

             "numberOfProbes": 2

 

            },

           "type":"Microsoft.Network/LoadBalancers/probes"

          }

        ],

       "inboundNatRules": [

          {

           "name":"sqliamnaturle",

           "type":"Microsoft.Network/loadbalancers/inboundNatrules",

           "properties": {

             "frontendIPConfiguration": {

               "id":"/subscriptions/7450e323-8ffc-461f-9b0a-cdc0e035f26b/resourceGroups/app501-iam-qa-sql-rg/providers/Microsoft.Network/loadBalancers/app501-iam-qa-sql-lb-01/frontendIPConfigurations/LoadBalancerFrontEnd"

 

              },

             "protocol":"Tcp",

             "frontendPort": 1433,

             "backendPort": 1433,

             "enableFloatingIP":false,

             "idleTimeoutInMinutes": 4,

             "backendIPConfiguration": {

               "id":"/subscriptions/7450e323-8ffc-461f-9b0a-cdc0e035f26b/resourceGroups/app501-iam-qa-sql-rg/providers/Microsoft.Network/networkInterfaces/azg4iam1sql01465/ipConfigurations/ipconfig1"

              }

            }

          }

        ],

       "inboundNatPools": []      

 

      }

    }

  ]

}


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>