Unable to add VMSS to Application Gateway backend pool

350 views
Skip to first unread message

Geoff Fish

unread,
Feb 19, 2018, 11:11:20 AM2/19/18
to Terraform
I did also raise an issue here: https://github.com/terraform-providers/terraform-provider-azurerm/issues/857 I'm asking here on the off chance someone might know a workaround?

I'm trying to create an Azure VMSS (azurerm_virtual_machine_scale_set), which instead of the default load balancer, has an Application Gateway (azurerm_application_gateway)

All builds ok, apart from when we build the vm scale set, I can;t figure out how we add the VMSS nodes into the application gateways backend pool...


It can be done successfully using azurerm_lb...

azurerm_virtual_machine_scale_set.network_profile.ip_configuration.load_balancer_backend_address_pool_ids = ["${azurerm_lb_backend_address_pool.bpepool.id}"]


But if I swap out the backend pool id for one used by azurerm_application_gateway I get the following error:

ag-beap is referencing resource of a wrong type. The Id is expected to reference resources of type loadBalancers/backendAddressPools.



Should there be another attribute under azurerm_virtual_machine_scale_set.network_profile.ip_configuration - Like application_gateway_backend_pools?

...or maybe there is another way to do this that I'm missing?

Geoff Fish

unread,
Feb 20, 2018, 3:28:28 AM2/20/18
to Terraform
Looks like missing functionality, which will hopefully be added soon, as it exists in the API/SDK for AzureRM
Reply all
Reply to author
Forward
0 new messages