0

As I am new to Azure ARM template, I would like to add newly created VMSS to existing backendpool of ApplicationGateway in Azure ARM; I am following this official link Add VMSS in backendpool of ApplicationGateway

but while doing that I am getting this below error:

New-AzResourceGroupDeployment : 07:17:14 PM - The deployment 'Test-APP' failed with error(s). Showing 1 out of 1 error(s). Status Message: Cannot parse the request. (Code: InvalidRequestFormat)

  • Could not find member 'ApplicationGatewayBackendAddressPools' on object of type 'VMScaleSetNetworkInterfaceIPConfiguration'. Path 'Properties.UpdateGroups[0].NetworkProfile.networkI nterfaceConfigurations[0].properties.ipConfigurations[0].ApplicationGatewayBackendAddressPools', line 1, position 671. (Code:InvalidJson) CorrelationId: 1234576-7tt2-49r1-b4d4-517b345691aa At line:8 char:1
  • New-AzResourceGroupDeployment `
  •   + CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
      + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzu
    

reResourceGroupDeploymentCmdlet

Any update on this will be highly appreciated.

Money Times
  • 135
  • 9

1 Answers1

0

You can use the below cmdlet's to add the new VMSS as backend address pool for existing application gateway using either PowerShell or Azure CLI.

  • Power shell cmdlet to add new VMSS as backend pool :

    Add-AzApplicationGatewayBackendAddressPool
    -ApplicationGateway <PSApplicationGateway>
    -Name <String>
    [-BackendIPAddresses <String[]>]
    [-BackendFqdns <String[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
    

Here is the reference document for the above power shell command

  • Azure CLI to add new VMSS as backend pool :

    az network application-gateway address-pool create --gateway-name
                                                        --name
                                                        --resource-group
                                                        [--no-wait]
                                                        [--servers]
                                                        [--subscription]
    

Here is the reference document for the above AzureCLI command

VenkateshDodda
  • 4,723
  • 1
  • 3
  • 12