» Data Source: azurerm_virtual_hub

Uses this data source to access information about an existing Virtual Hub.

» Virtual Hub Usage

data "azurerm_virtual_hub" "example" {
  name           = "example-hub"
  resource_group = "example-resources"
}

output "virtual_hub_id" {
  value = data.azurerm_virtual_hub.example.id
}

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the Virtual Hub.

  • resource_group_name - (Required) The Name of the Resource Group where the Virtual Hub exists.

» Attributes Reference

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.