Data Source: azurerm_route_table

Gets information about a Route Table

Example Usage

data "azurerm_route_table" "test" {
  name                = "myroutetable"
  resource_group_name = "some-resource-group"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the Route Table.

  • resource_group_name - (Required) The name of the Resource Group in which the Route Table exists.

Attributes Reference

The following attributes are exported:

  • id - The Route Table ID.

  • location - The Azure Region in which the Route Table exists.

  • route - One or more route blocks as documented below.

  • subnets - The collection of Subnets associated with this route table.

  • tags - A mapping of tags assigned to the Route Table.

The route block exports the following:

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurerm/d/route_table.html