We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages a Connection for a Virtual Hub.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("exampleVirtualNetwork", new Azure.Network.VirtualNetworkArgs
{
AddressSpaces =
{
"172.0.0.0/16",
},
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new Azure.Network.VirtualWanArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new Azure.Network.VirtualHubArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
VirtualWanId = exampleVirtualWan.Id,
AddressPrefix = "10.0.1.0/24",
});
var exampleVirtualHubConnection = new Azure.Network.VirtualHubConnection("exampleVirtualHubConnection", new Azure.Network.VirtualHubConnectionArgs
{
VirtualHubId = exampleVirtualHub.Id,
RemoteVirtualNetworkId = exampleVirtualNetwork.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "exampleVirtualNetwork", &network.VirtualNetworkArgs{
AddressSpaces: pulumi.StringArray{
pulumi.String("172.0.0.0/16"),
},
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
exampleVirtualWan, err := network.NewVirtualWan(ctx, "exampleVirtualWan", &network.VirtualWanArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
})
if err != nil {
return err
}
exampleVirtualHub, err := network.NewVirtualHub(ctx, "exampleVirtualHub", &network.VirtualHubArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
VirtualWanId: exampleVirtualWan.ID(),
AddressPrefix: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
_, err = network.NewVirtualHubConnection(ctx, "exampleVirtualHubConnection", &network.VirtualHubConnectionArgs{
VirtualHubId: exampleVirtualHub.ID(),
RemoteVirtualNetworkId: exampleVirtualNetwork.ID(),
})
if err != nil {
return err
}
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("exampleVirtualNetwork", {
addressSpaces: ["172.0.0.0/16"],
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
});
const exampleVirtualWan = new azure.network.VirtualWan("exampleVirtualWan", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
});
const exampleVirtualHub = new azure.network.VirtualHub("exampleVirtualHub", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
virtualWanId: exampleVirtualWan.id,
addressPrefix: "10.0.1.0/24",
});
const exampleVirtualHubConnection = new azure.network.VirtualHubConnection("exampleVirtualHubConnection", {
virtualHubId: exampleVirtualHub.id,
remoteVirtualNetworkId: exampleVirtualNetwork.id,
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_virtual_network = azure.network.VirtualNetwork("exampleVirtualNetwork",
address_spaces=["172.0.0.0/16"],
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_virtual_wan = azure.network.VirtualWan("exampleVirtualWan",
resource_group_name=example_resource_group.name,
location=example_resource_group.location)
example_virtual_hub = azure.network.VirtualHub("exampleVirtualHub",
resource_group_name=example_resource_group.name,
location=example_resource_group.location,
virtual_wan_id=example_virtual_wan.id,
address_prefix="10.0.1.0/24")
example_virtual_hub_connection = azure.network.VirtualHubConnection("exampleVirtualHubConnection",
virtual_hub_id=example_virtual_hub.id,
remote_virtual_network_id=example_virtual_network.id)
Example coming soon!
Create VirtualHubConnection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VirtualHubConnection(name: string, args: VirtualHubConnectionArgs, opts?: CustomResourceOptions);@overload
def VirtualHubConnection(resource_name: str,
args: VirtualHubConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VirtualHubConnection(resource_name: str,
opts: Optional[ResourceOptions] = None,
remote_virtual_network_id: Optional[str] = None,
virtual_hub_id: Optional[str] = None,
hub_to_vitual_network_traffic_allowed: Optional[bool] = None,
internet_security_enabled: Optional[bool] = None,
name: Optional[str] = None,
routing: Optional[VirtualHubConnectionRoutingArgs] = None,
vitual_network_to_hub_gateways_traffic_allowed: Optional[bool] = None)func NewVirtualHubConnection(ctx *Context, name string, args VirtualHubConnectionArgs, opts ...ResourceOption) (*VirtualHubConnection, error)public VirtualHubConnection(string name, VirtualHubConnectionArgs args, CustomResourceOptions? opts = null)
public VirtualHubConnection(String name, VirtualHubConnectionArgs args)
public VirtualHubConnection(String name, VirtualHubConnectionArgs args, CustomResourceOptions options)
type: azure:network:VirtualHubConnection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VirtualHubConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VirtualHubConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VirtualHubConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VirtualHubConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VirtualHubConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var virtualHubConnectionResource = new Azure.Network.VirtualHubConnection("virtualHubConnectionResource", new()
{
RemoteVirtualNetworkId = "string",
VirtualHubId = "string",
InternetSecurityEnabled = false,
Name = "string",
Routing = new Azure.Network.Inputs.VirtualHubConnectionRoutingArgs
{
AssociatedRouteTableId = "string",
PropagatedRouteTable = new Azure.Network.Inputs.VirtualHubConnectionRoutingPropagatedRouteTableArgs
{
Labels = new[]
{
"string",
},
RouteTableIds = new[]
{
"string",
},
},
StaticVnetRoutes = new[]
{
new Azure.Network.Inputs.VirtualHubConnectionRoutingStaticVnetRouteArgs
{
AddressPrefixes = new[]
{
"string",
},
Name = "string",
NextHopIpAddress = "string",
},
},
},
});
example, err := network.NewVirtualHubConnection(ctx, "virtualHubConnectionResource", &network.VirtualHubConnectionArgs{
RemoteVirtualNetworkId: pulumi.String("string"),
VirtualHubId: pulumi.String("string"),
InternetSecurityEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Routing: &network.VirtualHubConnectionRoutingArgs{
AssociatedRouteTableId: pulumi.String("string"),
PropagatedRouteTable: &network.VirtualHubConnectionRoutingPropagatedRouteTableArgs{
Labels: pulumi.StringArray{
pulumi.String("string"),
},
RouteTableIds: pulumi.StringArray{
pulumi.String("string"),
},
},
StaticVnetRoutes: network.VirtualHubConnectionRoutingStaticVnetRouteArray{
&network.VirtualHubConnectionRoutingStaticVnetRouteArgs{
AddressPrefixes: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
NextHopIpAddress: pulumi.String("string"),
},
},
},
})
var virtualHubConnectionResource = new VirtualHubConnection("virtualHubConnectionResource", VirtualHubConnectionArgs.builder()
.remoteVirtualNetworkId("string")
.virtualHubId("string")
.internetSecurityEnabled(false)
.name("string")
.routing(VirtualHubConnectionRoutingArgs.builder()
.associatedRouteTableId("string")
.propagatedRouteTable(VirtualHubConnectionRoutingPropagatedRouteTableArgs.builder()
.labels("string")
.routeTableIds("string")
.build())
.staticVnetRoutes(VirtualHubConnectionRoutingStaticVnetRouteArgs.builder()
.addressPrefixes("string")
.name("string")
.nextHopIpAddress("string")
.build())
.build())
.build());
virtual_hub_connection_resource = azure.network.VirtualHubConnection("virtualHubConnectionResource",
remote_virtual_network_id="string",
virtual_hub_id="string",
internet_security_enabled=False,
name="string",
routing={
"associated_route_table_id": "string",
"propagated_route_table": {
"labels": ["string"],
"route_table_ids": ["string"],
},
"static_vnet_routes": [{
"address_prefixes": ["string"],
"name": "string",
"next_hop_ip_address": "string",
}],
})
const virtualHubConnectionResource = new azure.network.VirtualHubConnection("virtualHubConnectionResource", {
remoteVirtualNetworkId: "string",
virtualHubId: "string",
internetSecurityEnabled: false,
name: "string",
routing: {
associatedRouteTableId: "string",
propagatedRouteTable: {
labels: ["string"],
routeTableIds: ["string"],
},
staticVnetRoutes: [{
addressPrefixes: ["string"],
name: "string",
nextHopIpAddress: "string",
}],
},
});
type: azure:network:VirtualHubConnection
properties:
internetSecurityEnabled: false
name: string
remoteVirtualNetworkId: string
routing:
associatedRouteTableId: string
propagatedRouteTable:
labels:
- string
routeTableIds:
- string
staticVnetRoutes:
- addressPrefixes:
- string
name: string
nextHopIpAddress: string
virtualHubId: string
VirtualHubConnection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VirtualHubConnection resource accepts the following input properties:
- Remote
Virtual stringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- Virtual
Hub stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- Hub
To boolVitual Network Traffic Allowed - Internet
Security boolEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - Name string
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- Routing
Virtual
Hub Connection Routing - A
routingblock as defined below. - Vitual
Network boolTo Hub Gateways Traffic Allowed
- Remote
Virtual stringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- Virtual
Hub stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- Hub
To boolVitual Network Traffic Allowed - Internet
Security boolEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - Name string
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- Routing
Virtual
Hub Connection Routing Args - A
routingblock as defined below. - Vitual
Network boolTo Hub Gateways Traffic Allowed
- remote
Virtual StringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- virtual
Hub StringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- hub
To BooleanVitual Network Traffic Allowed - internet
Security BooleanEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - name String
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- routing
Virtual
Hub Connection Routing - A
routingblock as defined below. - vitual
Network BooleanTo Hub Gateways Traffic Allowed
- remote
Virtual stringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- virtual
Hub stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- hub
To booleanVitual Network Traffic Allowed - internet
Security booleanEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - name string
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- routing
Virtual
Hub Connection Routing - A
routingblock as defined below. - vitual
Network booleanTo Hub Gateways Traffic Allowed
- remote_
virtual_ strnetwork_ id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- virtual_
hub_ strid - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- hub_
to_ boolvitual_ network_ traffic_ allowed - internet_
security_ boolenabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - name str
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- routing
Virtual
Hub Connection Routing Args - A
routingblock as defined below. - vitual_
network_ boolto_ hub_ gateways_ traffic_ allowed
- remote
Virtual StringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- virtual
Hub StringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- hub
To BooleanVitual Network Traffic Allowed - internet
Security BooleanEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - name String
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- routing Property Map
- A
routingblock as defined below. - vitual
Network BooleanTo Hub Gateways Traffic Allowed
Outputs
All input properties are implicitly available as output properties. Additionally, the VirtualHubConnection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing VirtualHubConnection Resource
Get an existing VirtualHubConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VirtualHubConnectionState, opts?: CustomResourceOptions): VirtualHubConnection@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
hub_to_vitual_network_traffic_allowed: Optional[bool] = None,
internet_security_enabled: Optional[bool] = None,
name: Optional[str] = None,
remote_virtual_network_id: Optional[str] = None,
routing: Optional[VirtualHubConnectionRoutingArgs] = None,
virtual_hub_id: Optional[str] = None,
vitual_network_to_hub_gateways_traffic_allowed: Optional[bool] = None) -> VirtualHubConnectionfunc GetVirtualHubConnection(ctx *Context, name string, id IDInput, state *VirtualHubConnectionState, opts ...ResourceOption) (*VirtualHubConnection, error)public static VirtualHubConnection Get(string name, Input<string> id, VirtualHubConnectionState? state, CustomResourceOptions? opts = null)public static VirtualHubConnection get(String name, Output<String> id, VirtualHubConnectionState state, CustomResourceOptions options)resources: _: type: azure:network:VirtualHubConnection get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Hub
To boolVitual Network Traffic Allowed - Internet
Security boolEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - Name string
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- Remote
Virtual stringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- Routing
Virtual
Hub Connection Routing - A
routingblock as defined below. - Virtual
Hub stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- Vitual
Network boolTo Hub Gateways Traffic Allowed
- Hub
To boolVitual Network Traffic Allowed - Internet
Security boolEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - Name string
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- Remote
Virtual stringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- Routing
Virtual
Hub Connection Routing Args - A
routingblock as defined below. - Virtual
Hub stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- Vitual
Network boolTo Hub Gateways Traffic Allowed
- hub
To BooleanVitual Network Traffic Allowed - internet
Security BooleanEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - name String
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- remote
Virtual StringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- routing
Virtual
Hub Connection Routing - A
routingblock as defined below. - virtual
Hub StringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- vitual
Network BooleanTo Hub Gateways Traffic Allowed
- hub
To booleanVitual Network Traffic Allowed - internet
Security booleanEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - name string
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- remote
Virtual stringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- routing
Virtual
Hub Connection Routing - A
routingblock as defined below. - virtual
Hub stringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- vitual
Network booleanTo Hub Gateways Traffic Allowed
- hub_
to_ boolvitual_ network_ traffic_ allowed - internet_
security_ boolenabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - name str
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- remote_
virtual_ strnetwork_ id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- routing
Virtual
Hub Connection Routing Args - A
routingblock as defined below. - virtual_
hub_ strid - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- vitual_
network_ boolto_ hub_ gateways_ traffic_ allowed
- hub
To BooleanVitual Network Traffic Allowed - internet
Security BooleanEnabled - Should Internet Security be enabled to secure internet traffic? Changing this forces a new resource to be created. Defaults to
false. - name String
- The Name which should be used for this Connection, which must be unique within the Virtual Hub. Changing this forces a new resource to be created.
- remote
Virtual StringNetwork Id - The ID of the Virtual Network which the Virtual Hub should be connected to. Changing this forces a new resource to be created.
- routing Property Map
- A
routingblock as defined below. - virtual
Hub StringId - The ID of the Virtual Hub within which this connection should be created. Changing this forces a new resource to be created.
- vitual
Network BooleanTo Hub Gateways Traffic Allowed
Supporting Types
VirtualHubConnectionRouting, VirtualHubConnectionRoutingArgs
- Associated
Route stringTable Id - The ID of the route table associated with this Virtual Hub connection.
- Propagated
Route VirtualTable Hub Connection Routing Propagated Route Table - A
propagated_route_tableblock as defined below. - Static
Vnet List<VirtualRoutes Hub Connection Routing Static Vnet Route> - A
static_vnet_routeblock as defined below.
- Associated
Route stringTable Id - The ID of the route table associated with this Virtual Hub connection.
- Propagated
Route VirtualTable Hub Connection Routing Propagated Route Table - A
propagated_route_tableblock as defined below. - Static
Vnet []VirtualRoutes Hub Connection Routing Static Vnet Route - A
static_vnet_routeblock as defined below.
- associated
Route StringTable Id - The ID of the route table associated with this Virtual Hub connection.
- propagated
Route VirtualTable Hub Connection Routing Propagated Route Table - A
propagated_route_tableblock as defined below. - static
Vnet List<VirtualRoutes Hub Connection Routing Static Vnet Route> - A
static_vnet_routeblock as defined below.
- associated
Route stringTable Id - The ID of the route table associated with this Virtual Hub connection.
- propagated
Route VirtualTable Hub Connection Routing Propagated Route Table - A
propagated_route_tableblock as defined below. - static
Vnet VirtualRoutes Hub Connection Routing Static Vnet Route[] - A
static_vnet_routeblock as defined below.
- associated_
route_ strtable_ id - The ID of the route table associated with this Virtual Hub connection.
- propagated_
route_ Virtualtable Hub Connection Routing Propagated Route Table - A
propagated_route_tableblock as defined below. - static_
vnet_ Sequence[Virtualroutes Hub Connection Routing Static Vnet Route] - A
static_vnet_routeblock as defined below.
- associated
Route StringTable Id - The ID of the route table associated with this Virtual Hub connection.
- propagated
Route Property MapTable - A
propagated_route_tableblock as defined below. - static
Vnet List<Property Map>Routes - A
static_vnet_routeblock as defined below.
VirtualHubConnectionRoutingPropagatedRouteTable, VirtualHubConnectionRoutingPropagatedRouteTableArgs
- Labels List<string>
- The list of labels to assign to this route table.
- Route
Table List<string>Ids - A list of Route Table ID's to associated with this Virtual Hub Connection.
- Labels []string
- The list of labels to assign to this route table.
- Route
Table []stringIds - A list of Route Table ID's to associated with this Virtual Hub Connection.
- labels List<String>
- The list of labels to assign to this route table.
- route
Table List<String>Ids - A list of Route Table ID's to associated with this Virtual Hub Connection.
- labels string[]
- The list of labels to assign to this route table.
- route
Table string[]Ids - A list of Route Table ID's to associated with this Virtual Hub Connection.
- labels Sequence[str]
- The list of labels to assign to this route table.
- route_
table_ Sequence[str]ids - A list of Route Table ID's to associated with this Virtual Hub Connection.
- labels List<String>
- The list of labels to assign to this route table.
- route
Table List<String>Ids - A list of Route Table ID's to associated with this Virtual Hub Connection.
VirtualHubConnectionRoutingStaticVnetRoute, VirtualHubConnectionRoutingStaticVnetRouteArgs
- Address
Prefixes List<string> - A list of CIDR Ranges which should be used as Address Prefixes.
- Name string
- The name which should be used for this Static Route.
- Next
Hop stringIp Address - The IP Address which should be used for the Next Hop.
- Address
Prefixes []string - A list of CIDR Ranges which should be used as Address Prefixes.
- Name string
- The name which should be used for this Static Route.
- Next
Hop stringIp Address - The IP Address which should be used for the Next Hop.
- address
Prefixes List<String> - A list of CIDR Ranges which should be used as Address Prefixes.
- name String
- The name which should be used for this Static Route.
- next
Hop StringIp Address - The IP Address which should be used for the Next Hop.
- address
Prefixes string[] - A list of CIDR Ranges which should be used as Address Prefixes.
- name string
- The name which should be used for this Static Route.
- next
Hop stringIp Address - The IP Address which should be used for the Next Hop.
- address_
prefixes Sequence[str] - A list of CIDR Ranges which should be used as Address Prefixes.
- name str
- The name which should be used for this Static Route.
- next_
hop_ strip_ address - The IP Address which should be used for the Next Hop.
- address
Prefixes List<String> - A list of CIDR Ranges which should be used as Address Prefixes.
- name String
- The name which should be used for this Static Route.
- next
Hop StringIp Address - The IP Address which should be used for the Next Hop.
Import
Virtual Hub Connection’s can be imported using the resource id, e.g.
$ pulumi import azure:network/virtualHubConnection:VirtualHubConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/virtualHubs/hub1/hubVirtualNetworkConnections/connection1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
