How to create new backend address pool for existing load balancer usingazure arm template.

Dnyaneshwar Surywanshi 156 Reputation points
2021-01-13T11:33:16.423+00:00

I have already created load balancer now i want to add new backend pool using arm temple resource .So please provide me any new resource which will create backend pool.

Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
412 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 48,096 Reputation points Microsoft Employee
    2021-01-13T16:41:34.347+00:00

    Hello @Dnyaneshwar Surywanshi ,

    To create new backend address pool for existing load balancer using azure arm template, please refer below article:
    https://learn.microsoft.com/en-us/azure/templates/microsoft.network/loadbalancers/backendaddresspools

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Dnyaneshwar Surywanshi 156 Reputation points
    2021-01-19T11:13:59.02+00:00

    @GitaraniSharma-MSFT
    Below is my code :
    {
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
    "lbName": {
    "type": "string",
    "defaultValue": "lb-internal"
    },
    "newBackendPoolName": {
    "type": "string",
    "defaultValue": "NewLbBackPul"
    },
    "vnetName": {
    "type": "string",
    "defaultValue": "vnetlb"
    }
    },
    "variables": {
    "lbbackpoolDeploymentName": "newback"
    },
    "resources": [
    {
    "type": "Microsoft.Network/loadBalancers/backendAddressPools",
    "name": "[variables('lbbackpoolDeploymentName')]",
    "apiVersion": "2020-07-01",
    "properties": {
    "loadBalancerBackendAddresses": [
    {
    "properties": {
    "virtualNetwork": {
    "id": "[resourceId('Microsoft.Network/virtualNetworks/', parameters('vnetName'))]"
    },
    "ipAddress": "string",
    "loadBalancerFrontendIPConfiguration": {
    "id": "[resourceId('Microsoft.Network/loadBalancers/frontendIPConfigurations', parameters('lbName'), 'LBFrontEndNew')]"
    }
    },
    "name": "[parameters('newBackendPoolName')]"
    }
    ]
    }
    }
    ]
    }

    Getting Below Error :
    58133-newbacckendpoolerror.png