Uses this data source to access information about an existing Virtual Hub.
data "azurerm_virtual_hub" "example" {
name = "example-hub"
resource_group_name = "example-resources"
}
output "virtual_hub_id" {
value = data.azurerm_virtual_hub.example.id
}
The following arguments are supported:
name
- The name of the Virtual Hub.
resource_group_name
- The Name of the Resource Group where the Virtual Hub exists.
The following attributes are exported:
location
- The Azure Region where the Virtual Hub exists.
address_prefix
- The Address Prefix used for this Virtual Hub.
tags
- A mapping of tags assigned to the Virtual Hub.
virtual_wan_id
- The ID of the Virtual WAN within which the Virtual Hub exists.
default_route_table_id
- The ID of the default Route Table in the Virtual Hub.
virtual_router_asn
- The Autonomous System Number of the Virtual Hub BGP router.
virtual_router_ips
- The IP addresses of the Virtual Hub BGP router.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Virtual Hub.