I tried to RTFM in the usual place, but none of the examples in 101-application-gateway
exhibited this pattern. I have a Solution Template ARM template that deploys N VMs. I need to cause an Azure Application Gateway to be provisioned and configured with BackendAddresses
that refer to those N VMs. I am familiar with the copy
and copyIndex()
pattern, but I don't see how to apply it here. The examples have code like:
"backendAddressPools": [
{
"name": "appGatewayBackendPool",
"properties": {
"BackendAddresses": [
{
"IpAddress": "[parameters('backendIpAddress1')]"
},
{
"IpAddress": "[parameters('backendIpAddress2')]"
}
]
}
}
],
but I would like to do something like:
"backendAddressPools": [
{
"name": "appGatewayBackendPool",
"properties": {
"BackendAddresses": [
{
"IpAddress": "[concat(variables('managedVMPrefix'), copyIndex(),variables('nicName'))]"
}
]
}
}
],
I'm sure that won't work because I need N entries in the BackendAddressess
array.
Any ideas how to do this?
Thanks,
Ed