Terraform-provider-azurerm: Is anybody able to create internal load balancer in azure using terraform..

Created on 30 Jan 2018  ·  4Comments  ·  Source: terraform-providers/terraform-provider-azurerm

This is an open question about azurerm provider.
1) I need to create internal load balancer without front end IP configuration using terraform script is this possible?
If yes please provide me link....
When I try this I get error
Error Creating/Updating LoadBalancer network.LoadBalancersClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="LoadBalancerWithoutFrontendIPCantHaveChildResources" Message="Load Balancer /subscriptions/0000000-0000-0000-0000-000000000/resourceGroups/myresourcegr/providers/Microsoft.Network/loadBalancers/vmss-lb does not have Frontend IP Configuration, but it has other child resources. This setup is not supported." Details=[]

2) If above is possible I need to attach private IP to my internal load balancer.
How anyone should do it.

Most helpful comment

To attach a private IP to your internal load balancer, you still need a frontend_ip_configuration block. But instead of a public_ip_address_id, you put a subnet_id (and specify a private IP address if you want it to be static). See the doc here: https://www.terraform.io/docs/providers/azurerm/r/loadbalancer.html

All 4 comments

To attach a private IP to your internal load balancer, you still need a frontend_ip_configuration block. But instead of a public_ip_address_id, you put a subnet_id (and specify a private IP address if you want it to be static). See the doc here: https://www.terraform.io/docs/providers/azurerm/r/loadbalancer.html

@bpoland
worked well.
Thank you for your response on this.

Cool, no problem.

I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

Was this page helpful?
0 / 5 - 0 ratings