I am using the VM scale set with an application gateway in an ARM template. First deploy works fine. When redeploying the template, I get an error: "A Backend Address Pool can have at most one VM scale set".
IpConfiguration /subscriptions/.../resourceGroups/.../providers/Microsoft.Compute/virtualMachineScaleSets/.../updateGroups/.../networkInterfaceConfigurations/.../ipConfigurations/... cannot reference Backend Address Pool /subscriptions/.../resourceGroups/.../providers/Microsoft.Network/applicationGateways/.../backendAddressPools/... because it contains another VM scale set. A Backend Address Pool can have atmost one VM scale set. (Code: ApplicationGatewayBackendAddressPoolCanHaveAtMostOneVMScaleSet)
What would be the root cause of this issue?
Clarification: By redeploy I mean: I want to update the existing deployment. I do not want to duplicate.