This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.network.getVirtualHub
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Retrieves the details of a VirtualHub. Azure REST API version: 2023-02-01.
Other available API versions: 2018-07-01, 2020-04-01, 2020-06-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01, 2024-05-01.
Using getVirtualHub
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualHub(args: GetVirtualHubArgs, opts?: InvokeOptions): Promise<GetVirtualHubResult>
function getVirtualHubOutput(args: GetVirtualHubOutputArgs, opts?: InvokeOptions): Output<GetVirtualHubResult>def get_virtual_hub(resource_group_name: Optional[str] = None,
                    virtual_hub_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetVirtualHubResult
def get_virtual_hub_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                    virtual_hub_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetVirtualHubResult]func LookupVirtualHub(ctx *Context, args *LookupVirtualHubArgs, opts ...InvokeOption) (*LookupVirtualHubResult, error)
func LookupVirtualHubOutput(ctx *Context, args *LookupVirtualHubOutputArgs, opts ...InvokeOption) LookupVirtualHubResultOutput> Note: This function is named LookupVirtualHub in the Go SDK.
public static class GetVirtualHub 
{
    public static Task<GetVirtualHubResult> InvokeAsync(GetVirtualHubArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualHubResult> Invoke(GetVirtualHubInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualHubResult> getVirtualHub(GetVirtualHubArgs args, InvokeOptions options)
public static Output<GetVirtualHubResult> getVirtualHub(GetVirtualHubArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:network:getVirtualHub
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ResourceGroup stringName 
- The resource group name of the VirtualHub.
- VirtualHub stringName 
- The name of the VirtualHub.
- ResourceGroup stringName 
- The resource group name of the VirtualHub.
- VirtualHub stringName 
- The name of the VirtualHub.
- resourceGroup StringName 
- The resource group name of the VirtualHub.
- virtualHub StringName 
- The name of the VirtualHub.
- resourceGroup stringName 
- The resource group name of the VirtualHub.
- virtualHub stringName 
- The name of the VirtualHub.
- resource_group_ strname 
- The resource group name of the VirtualHub.
- virtual_hub_ strname 
- The name of the VirtualHub.
- resourceGroup StringName 
- The resource group name of the VirtualHub.
- virtualHub StringName 
- The name of the VirtualHub.
getVirtualHub Result
The following output properties are available:
- BgpConnections List<Pulumi.Azure Native. Network. Outputs. Sub Resource Response> 
- List of references to Bgp Connections.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- IpConfigurations List<Pulumi.Azure Native. Network. Outputs. Sub Resource Response> 
- List of references to IpConfigurations.
- Kind string
- Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
- Location string
- Resource location.
- Name string
- Resource name.
- ProvisioningState string
- The provisioning state of the virtual hub resource.
- RouteMaps List<Pulumi.Azure Native. Network. Outputs. Sub Resource Response> 
- List of references to RouteMaps.
- RoutingState string
- The routing state.
- Type string
- Resource type.
- AddressPrefix string
- Address-prefix for this VirtualHub.
- AllowBranch boolTo Branch Traffic 
- Flag to control transit for VirtualRouter hub.
- AzureFirewall Pulumi.Azure Native. Network. Outputs. Sub Resource Response 
- The azureFirewall associated with this VirtualHub.
- ExpressRoute Pulumi.Gateway Azure Native. Network. Outputs. Sub Resource Response 
- The expressRouteGateway associated with this VirtualHub.
- HubRouting stringPreference 
- The hubRoutingPreference of this VirtualHub.
- Id string
- Resource ID.
- P2SVpnGateway Pulumi.Azure Native. Network. Outputs. Sub Resource Response 
- The P2SVpnGateway associated with this VirtualHub.
- PreferredRouting stringGateway 
- The preferred gateway to route on-prem traffic
- RouteTable Pulumi.Azure Native. Network. Outputs. Virtual Hub Route Table Response 
- The routeTable associated with this virtual hub.
- SecurityPartner Pulumi.Provider Azure Native. Network. Outputs. Sub Resource Response 
- The securityPartnerProvider associated with this VirtualHub.
- SecurityProvider stringName 
- The Security Provider name.
- Sku string
- The sku of this VirtualHub.
- Dictionary<string, string>
- Resource tags.
- VirtualHub List<Pulumi.Route Table V2s Azure Native. Network. Outputs. Virtual Hub Route Table V2Response> 
- List of all virtual hub route table v2s associated with this VirtualHub.
- VirtualRouter doubleAsn 
- VirtualRouter ASN.
- VirtualRouter Pulumi.Auto Scale Configuration Azure Native. Network. Outputs. Virtual Router Auto Scale Configuration Response 
- The VirtualHub Router autoscale configuration.
- VirtualRouter List<string>Ips 
- VirtualRouter IPs.
- VirtualWan Pulumi.Azure Native. Network. Outputs. Sub Resource Response 
- The VirtualWAN to which the VirtualHub belongs.
- VpnGateway Pulumi.Azure Native. Network. Outputs. Sub Resource Response 
- The VpnGateway associated with this VirtualHub.
- BgpConnections []SubResource Response 
- List of references to Bgp Connections.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- IpConfigurations []SubResource Response 
- List of references to IpConfigurations.
- Kind string
- Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
- Location string
- Resource location.
- Name string
- Resource name.
- ProvisioningState string
- The provisioning state of the virtual hub resource.
- RouteMaps []SubResource Response 
- List of references to RouteMaps.
- RoutingState string
- The routing state.
- Type string
- Resource type.
- AddressPrefix string
- Address-prefix for this VirtualHub.
- AllowBranch boolTo Branch Traffic 
- Flag to control transit for VirtualRouter hub.
- AzureFirewall SubResource Response 
- The azureFirewall associated with this VirtualHub.
- ExpressRoute SubGateway Resource Response 
- The expressRouteGateway associated with this VirtualHub.
- HubRouting stringPreference 
- The hubRoutingPreference of this VirtualHub.
- Id string
- Resource ID.
- P2SVpnGateway SubResource Response 
- The P2SVpnGateway associated with this VirtualHub.
- PreferredRouting stringGateway 
- The preferred gateway to route on-prem traffic
- RouteTable VirtualHub Route Table Response 
- The routeTable associated with this virtual hub.
- SecurityPartner SubProvider Resource Response 
- The securityPartnerProvider associated with this VirtualHub.
- SecurityProvider stringName 
- The Security Provider name.
- Sku string
- The sku of this VirtualHub.
- map[string]string
- Resource tags.
- VirtualHub []VirtualRoute Table V2s Hub Route Table V2Response 
- List of all virtual hub route table v2s associated with this VirtualHub.
- VirtualRouter float64Asn 
- VirtualRouter ASN.
- VirtualRouter VirtualAuto Scale Configuration Router Auto Scale Configuration Response 
- The VirtualHub Router autoscale configuration.
- VirtualRouter []stringIps 
- VirtualRouter IPs.
- VirtualWan SubResource Response 
- The VirtualWAN to which the VirtualHub belongs.
- VpnGateway SubResource Response 
- The VpnGateway associated with this VirtualHub.
- bgpConnections List<SubResource Response> 
- List of references to Bgp Connections.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- ipConfigurations List<SubResource Response> 
- List of references to IpConfigurations.
- kind String
- Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
- location String
- Resource location.
- name String
- Resource name.
- provisioningState String
- The provisioning state of the virtual hub resource.
- routeMaps List<SubResource Response> 
- List of references to RouteMaps.
- routingState String
- The routing state.
- type String
- Resource type.
- addressPrefix String
- Address-prefix for this VirtualHub.
- allowBranch BooleanTo Branch Traffic 
- Flag to control transit for VirtualRouter hub.
- azureFirewall SubResource Response 
- The azureFirewall associated with this VirtualHub.
- expressRoute SubGateway Resource Response 
- The expressRouteGateway associated with this VirtualHub.
- hubRouting StringPreference 
- The hubRoutingPreference of this VirtualHub.
- id String
- Resource ID.
- p2SVpnGateway SubResource Response 
- The P2SVpnGateway associated with this VirtualHub.
- preferredRouting StringGateway 
- The preferred gateway to route on-prem traffic
- routeTable VirtualHub Route Table Response 
- The routeTable associated with this virtual hub.
- securityPartner SubProvider Resource Response 
- The securityPartnerProvider associated with this VirtualHub.
- securityProvider StringName 
- The Security Provider name.
- sku String
- The sku of this VirtualHub.
- Map<String,String>
- Resource tags.
- virtualHub List<VirtualRoute Table V2s Hub Route Table V2Response> 
- List of all virtual hub route table v2s associated with this VirtualHub.
- virtualRouter DoubleAsn 
- VirtualRouter ASN.
- virtualRouter VirtualAuto Scale Configuration Router Auto Scale Configuration Response 
- The VirtualHub Router autoscale configuration.
- virtualRouter List<String>Ips 
- VirtualRouter IPs.
- virtualWan SubResource Response 
- The VirtualWAN to which the VirtualHub belongs.
- vpnGateway SubResource Response 
- The VpnGateway associated with this VirtualHub.
- bgpConnections SubResource Response[] 
- List of references to Bgp Connections.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- ipConfigurations SubResource Response[] 
- List of references to IpConfigurations.
- kind string
- Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
- location string
- Resource location.
- name string
- Resource name.
- provisioningState string
- The provisioning state of the virtual hub resource.
- routeMaps SubResource Response[] 
- List of references to RouteMaps.
- routingState string
- The routing state.
- type string
- Resource type.
- addressPrefix string
- Address-prefix for this VirtualHub.
- allowBranch booleanTo Branch Traffic 
- Flag to control transit for VirtualRouter hub.
- azureFirewall SubResource Response 
- The azureFirewall associated with this VirtualHub.
- expressRoute SubGateway Resource Response 
- The expressRouteGateway associated with this VirtualHub.
- hubRouting stringPreference 
- The hubRoutingPreference of this VirtualHub.
- id string
- Resource ID.
- p2SVpnGateway SubResource Response 
- The P2SVpnGateway associated with this VirtualHub.
- preferredRouting stringGateway 
- The preferred gateway to route on-prem traffic
- routeTable VirtualHub Route Table Response 
- The routeTable associated with this virtual hub.
- securityPartner SubProvider Resource Response 
- The securityPartnerProvider associated with this VirtualHub.
- securityProvider stringName 
- The Security Provider name.
- sku string
- The sku of this VirtualHub.
- {[key: string]: string}
- Resource tags.
- virtualHub VirtualRoute Table V2s Hub Route Table V2Response[] 
- List of all virtual hub route table v2s associated with this VirtualHub.
- virtualRouter numberAsn 
- VirtualRouter ASN.
- virtualRouter VirtualAuto Scale Configuration Router Auto Scale Configuration Response 
- The VirtualHub Router autoscale configuration.
- virtualRouter string[]Ips 
- VirtualRouter IPs.
- virtualWan SubResource Response 
- The VirtualWAN to which the VirtualHub belongs.
- vpnGateway SubResource Response 
- The VpnGateway associated with this VirtualHub.
- bgp_connections Sequence[SubResource Response] 
- List of references to Bgp Connections.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- ip_configurations Sequence[SubResource Response] 
- List of references to IpConfigurations.
- kind str
- Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
- location str
- Resource location.
- name str
- Resource name.
- provisioning_state str
- The provisioning state of the virtual hub resource.
- route_maps Sequence[SubResource Response] 
- List of references to RouteMaps.
- routing_state str
- The routing state.
- type str
- Resource type.
- address_prefix str
- Address-prefix for this VirtualHub.
- allow_branch_ boolto_ branch_ traffic 
- Flag to control transit for VirtualRouter hub.
- azure_firewall SubResource Response 
- The azureFirewall associated with this VirtualHub.
- express_route_ Subgateway Resource Response 
- The expressRouteGateway associated with this VirtualHub.
- hub_routing_ strpreference 
- The hubRoutingPreference of this VirtualHub.
- id str
- Resource ID.
- p2_s_ Subvpn_ gateway Resource Response 
- The P2SVpnGateway associated with this VirtualHub.
- preferred_routing_ strgateway 
- The preferred gateway to route on-prem traffic
- route_table VirtualHub Route Table Response 
- The routeTable associated with this virtual hub.
- security_partner_ Subprovider Resource Response 
- The securityPartnerProvider associated with this VirtualHub.
- security_provider_ strname 
- The Security Provider name.
- sku str
- The sku of this VirtualHub.
- Mapping[str, str]
- Resource tags.
- virtual_hub_ Sequence[Virtualroute_ table_ v2s Hub Route Table V2Response] 
- List of all virtual hub route table v2s associated with this VirtualHub.
- virtual_router_ floatasn 
- VirtualRouter ASN.
- virtual_router_ Virtualauto_ scale_ configuration Router Auto Scale Configuration Response 
- The VirtualHub Router autoscale configuration.
- virtual_router_ Sequence[str]ips 
- VirtualRouter IPs.
- virtual_wan SubResource Response 
- The VirtualWAN to which the VirtualHub belongs.
- vpn_gateway SubResource Response 
- The VpnGateway associated with this VirtualHub.
- bgpConnections List<Property Map>
- List of references to Bgp Connections.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- ipConfigurations List<Property Map>
- List of references to IpConfigurations.
- kind String
- Kind of service virtual hub. This is metadata used for the Azure portal experience for Route Server.
- location String
- Resource location.
- name String
- Resource name.
- provisioningState String
- The provisioning state of the virtual hub resource.
- routeMaps List<Property Map>
- List of references to RouteMaps.
- routingState String
- The routing state.
- type String
- Resource type.
- addressPrefix String
- Address-prefix for this VirtualHub.
- allowBranch BooleanTo Branch Traffic 
- Flag to control transit for VirtualRouter hub.
- azureFirewall Property Map
- The azureFirewall associated with this VirtualHub.
- expressRoute Property MapGateway 
- The expressRouteGateway associated with this VirtualHub.
- hubRouting StringPreference 
- The hubRoutingPreference of this VirtualHub.
- id String
- Resource ID.
- p2SVpnGateway Property Map
- The P2SVpnGateway associated with this VirtualHub.
- preferredRouting StringGateway 
- The preferred gateway to route on-prem traffic
- routeTable Property Map
- The routeTable associated with this virtual hub.
- securityPartner Property MapProvider 
- The securityPartnerProvider associated with this VirtualHub.
- securityProvider StringName 
- The Security Provider name.
- sku String
- The sku of this VirtualHub.
- Map<String>
- Resource tags.
- virtualHub List<Property Map>Route Table V2s 
- List of all virtual hub route table v2s associated with this VirtualHub.
- virtualRouter NumberAsn 
- VirtualRouter ASN.
- virtualRouter Property MapAuto Scale Configuration 
- The VirtualHub Router autoscale configuration.
- virtualRouter List<String>Ips 
- VirtualRouter IPs.
- virtualWan Property Map
- The VirtualWAN to which the VirtualHub belongs.
- vpnGateway Property Map
- The VpnGateway associated with this VirtualHub.
Supporting Types
SubResourceResponse  
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
VirtualHubRouteResponse   
- AddressPrefixes List<string>
- List of all addressPrefixes.
- NextHop stringIp Address 
- NextHop ip address.
- AddressPrefixes []string
- List of all addressPrefixes.
- NextHop stringIp Address 
- NextHop ip address.
- addressPrefixes List<String>
- List of all addressPrefixes.
- nextHop StringIp Address 
- NextHop ip address.
- addressPrefixes string[]
- List of all addressPrefixes.
- nextHop stringIp Address 
- NextHop ip address.
- address_prefixes Sequence[str]
- List of all addressPrefixes.
- next_hop_ strip_ address 
- NextHop ip address.
- addressPrefixes List<String>
- List of all addressPrefixes.
- nextHop StringIp Address 
- NextHop ip address.
VirtualHubRouteTableResponse    
- Routes
List<Pulumi.Azure Native. Network. Inputs. Virtual Hub Route Response> 
- List of all routes.
- Routes
[]VirtualHub Route Response 
- List of all routes.
- routes
List<VirtualHub Route Response> 
- List of all routes.
- routes
VirtualHub Route Response[] 
- List of all routes.
- routes
Sequence[VirtualHub Route Response] 
- List of all routes.
- routes List<Property Map>
- List of all routes.
VirtualHubRouteTableV2Response    
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- ProvisioningState string
- The provisioning state of the virtual hub route table v2 resource.
- AttachedConnections List<string>
- List of all connections attached to this route table v2.
- Id string
- Resource ID.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Routes
List<Pulumi.Azure Native. Network. Inputs. Virtual Hub Route V2Response> 
- List of all routes.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- ProvisioningState string
- The provisioning state of the virtual hub route table v2 resource.
- AttachedConnections []string
- List of all connections attached to this route table v2.
- Id string
- Resource ID.
- Name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- Routes
[]VirtualHub Route V2Response 
- List of all routes.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- provisioningState String
- The provisioning state of the virtual hub route table v2 resource.
- attachedConnections List<String>
- List of all connections attached to this route table v2.
- id String
- Resource ID.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- routes
List<VirtualHub Route V2Response> 
- List of all routes.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- provisioningState string
- The provisioning state of the virtual hub route table v2 resource.
- attachedConnections string[]
- List of all connections attached to this route table v2.
- id string
- Resource ID.
- name string
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- routes
VirtualHub Route V2Response[] 
- List of all routes.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- provisioning_state str
- The provisioning state of the virtual hub route table v2 resource.
- attached_connections Sequence[str]
- List of all connections attached to this route table v2.
- id str
- Resource ID.
- name str
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- routes
Sequence[VirtualHub Route V2Response] 
- List of all routes.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- provisioningState String
- The provisioning state of the virtual hub route table v2 resource.
- attachedConnections List<String>
- List of all connections attached to this route table v2.
- id String
- Resource ID.
- name String
- The name of the resource that is unique within a resource group. This name can be used to access the resource.
- routes List<Property Map>
- List of all routes.
VirtualHubRouteV2Response   
- DestinationType string
- The type of destinations.
- Destinations List<string>
- List of all destinations.
- NextHop stringType 
- The type of next hops.
- NextHops List<string>
- NextHops ip address.
- DestinationType string
- The type of destinations.
- Destinations []string
- List of all destinations.
- NextHop stringType 
- The type of next hops.
- NextHops []string
- NextHops ip address.
- destinationType String
- The type of destinations.
- destinations List<String>
- List of all destinations.
- nextHop StringType 
- The type of next hops.
- nextHops List<String>
- NextHops ip address.
- destinationType string
- The type of destinations.
- destinations string[]
- List of all destinations.
- nextHop stringType 
- The type of next hops.
- nextHops string[]
- NextHops ip address.
- destination_type str
- The type of destinations.
- destinations Sequence[str]
- List of all destinations.
- next_hop_ strtype 
- The type of next hops.
- next_hops Sequence[str]
- NextHops ip address.
- destinationType String
- The type of destinations.
- destinations List<String>
- List of all destinations.
- nextHop StringType 
- The type of next hops.
- nextHops List<String>
- NextHops ip address.
VirtualRouterAutoScaleConfigurationResponse     
- MinCapacity int
- The minimum number of scale units for VirtualHub Router.
- MinCapacity int
- The minimum number of scale units for VirtualHub Router.
- minCapacity Integer
- The minimum number of scale units for VirtualHub Router.
- minCapacity number
- The minimum number of scale units for VirtualHub Router.
- min_capacity int
- The minimum number of scale units for VirtualHub Router.
- minCapacity Number
- The minimum number of scale units for VirtualHub Router.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi