Data Source: azurerm_lb_rule

Use this data source to access information about an existing Load Balancer Rule.

Example Usage

data "azurerm_lb" "example" {
  name                = "example-lb"
  resource_group_name = "example-resources"
}

data "azurerm_lb_rule" "example" {
  name                = "first"
  resource_group_name = "example-resources"
  loadbalancer_id     = data.azurerm_lb.example.id
}

output "lb_rule_id" {
  value = data.azurerm_lb_rule.example.id
}

Arguments Reference

The following arguments are supported:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions: